安装 ssl 证书以便为本地 Web 应用程序提供服务?

Installing an ssl certificate in order to serve a local web application?

我需要安装本地 SSL 证书以便浏览器信任它。本教程包含 OS X 和 Windows 的说明,但没有 Ubuntu.

https://medium.com/@rubenvermeulen/running-angular-cli-over-https-with-a-trusted-certificate-4a0d5f92747a

例如,这些是 OS X:

的说明

双击证书(server.crt) Select 您想要的钥匙串(登录就足够了) 添加证书 如果尚未打开,请打开钥匙串访问 Select 您之前选择的钥匙串 您应该看到证书 localhost 双击证书 扩大信任 Select 使用此证书时始终信任选项 关闭证书 window 证书现已安装。

Ubuntu 的等价物是什么?

可以在 [= 中搜索 => '如何通过 Let's Encrypt 在 Ubuntu Linux 中创建 SSL 证书' 21=] 继续学习

这应该可以解决问题: https://askubuntu.com/questions/73287/how-do-i-install-a-root-certificate