我为localhost CN创建了一个自签名SSL证书.Firefox正如预期的那样在最初抱怨之后接受此证书.然而,Chrome和IE拒绝接受它,即使在将证书添加到Trusted Roots下的系统证书存储区之后也是如此.即使我在Chrome的HTTPS弹出窗口中单击"查看证书信息"时列出的证书已正确安装,但仍然坚持认证证书不可信.
我该怎么办才能让Chrome接受证书并停止抱怨?
我正在尝试遵循本指南https://angular.io/guide/setup-local。我安装了 node.js 和 angular cli 并构建了默认应用程序:
ng new my-app
Run Code Online (Sandbox Code Playgroud)
现在我想启动应用程序:
cd my-app
ng serve --open
Run Code Online (Sandbox Code Playgroud)
它开始正常:
** Angular Live Development Server is listening on localhost:4200, open your browser on https://localhost:4200/ **
i ?wdm?: Compiled successfully.
Run Code Online (Sandbox Code Playgroud)
但是当我在 Chrome 中打开页面时,它是隐私错误
当我尝试在 Firefox 中打开它时,一切都很好。我尝试使用下一个命令启动应用程序:
ng serve --open --ssl true
Run Code Online (Sandbox Code Playgroud)
还是一样的错误。有什么帮助吗?此时我不需要 https,我只想能够在 Chrome 中打开我的应用程序。
+
我发布了错误的错误代码。我明白了:ERR_SSL_PROTOCOL_ERROR