在 chrome 上禁用本地主机上的任何证书检查

Syn*_*ity 8 frontend google-chrome ssl-certificate

我只是尝试工作,但 Google 非常努力地阻止我这样做。我只是想开发我最喜欢的遗留应用程序,即使在本地主机上的开发期间,我也必须使用 HTTPS。很长时间以来,我都像现在一样设置了一切……但突然间我开始NET::ERR_CERT_INVALID出错。

我将证书添加到我的钥匙串并将其设置为始终信任。

我检查了我很久以前知道并设置的 Chrome 中的设置,它允许我在本地主机上使用自签名证书:

chrome://flags/#allow-insecure-localhost
Run Code Online (Sandbox Code Playgroud)

但是现在我找不到了。他们有可能将其删除吗?我还尝试使用以下参数从命令行启动 chrome:

Google\ Chrome.app/Contents/MacOS/Google\ Chrome  --ignore-certificate-errors --ignore-urlfetcher-cert-requests &> /dev/null
Run Code Online (Sandbox Code Playgroud)

但是有了这个,我也会NET::ERR_CERT_INVALID出错。我在以下版本的 Chrome 中尝试了标志和命令行选项:

88.0.4324.96 (Official Build) (x86_64)
90.0.4394.0 (Official Build) canary (x86_64)
Run Code Online (Sandbox Code Playgroud)

Ras*_*spo 5

该标志allow-insecure-localhost似乎在 Chrome 88 上不再可用(显然标志会在一段时间后过期),并且应该在 v89 中恢复,根据:https: //bugs.chromium.org/p/chromium/issues/detail ?id=1159077

  • 我自己从未弄乱过命令参数,但如果您按照该链接上的说明进行操作,您就可以重新启用该标志,而无需等待 v89。1. 启用此标志: `chrome://flags/#temporary-unexpire-flags-m87` 2. 重新启动 Chrome 3. 现在 `chrome://flags/#allow-insecure-localhost` 应该再次出现 (2认同)