我试图让我的本地开发在Chrome重新运行,但Chrome阻止了这一点,提示证书无效。尽管它可能不是证书的日期,正如你在它的截图中看到的那样:

我只是想知道为什么没有高级>选项继续无论如何看到网站,并能够在本地开发应用程序。

还有几件事需要提一下:

The local development runs on https://local.app.somecompany.com:4200/. It can't be just localhost, because otherwise our authentication http-only cookies won't work in Chrome. Therefore the host file under etc/hosts was adjusted to point to the localhost IP adress (127.0.0.1). The certificate was generated with openssl according to this tutorial and this repo The certificate works for a colleague with the exact same Chrome version but with a MacOS version 10.14.6 (mine right now is MacOS 10.15.1) The chrome flag(chrome://flags/#allow-insecure-localhost) does not change anything Also works in firefox on my laptop.

到目前为止,我在网上找不到任何帮助我解决这个问题的东西,所以我非常感谢,如果有人有更多的想法,我可以尝试!?

规格:

操作系统:MacOS 10.15.1 铬:78.0.3904.97


当前回答

这个错误可以简单地绕过启动chrome在不安全模式,如下所示。

google-chrome --args --disable-web-security --allow-running-insecure-content --user-data-dir=/tmp/chrome-insecure/ -ignore-certificate-errors

其他回答

一个可能的解决方案是启动Chrome参数“——ignore-certificate-errors”。

Mac操作系统的步骤:

Chrome。 在Finder中,选择“Go”>“Utilities”。 推出“终端”。 输入以下命令,然后按“Enter”: /应用程序/谷歌\ Chrome。app/Contents/MacOS/谷歌\ Chrome——ignore-certificate-errors &> /dev/null &

来自https://www.technipages.com/google-chrome-bypass-your-connection-is-not-private-message的解决方案

这个错误可以简单地绕过启动chrome在不安全模式,如下所示。

google-chrome --args --disable-web-security --allow-running-insecure-content --user-data-dir=/tmp/chrome-insecure/ -ignore-certificate-errors

使浏览器信任SSL证书

在Chrome中,我们可以在搜索栏中写入以下URL: Chrome://flags/#allow-insecure-localhost并激活相对选项。

礼貌:https://www.thomasvitale.com/https-spring-boot-ssl-certificate/

2021年,我在2007年的iMac上使用了这个方法:

https://www.youtube.com/watch?v=m3FgAztrYYo

包含了Letsencrypt根证书链接。

只需在chrome拒绝页面的搜索栏中点击“不安全”,然后点击证书,就可以看到您的证书。点击信任选项做始终信任。