gpt4 book ai didi

google-chrome - Chrome 中的 net::ERR_INSECURE_RESPONSE

转载 作者:行者123 更新时间:2023-12-03 05:31:50 29 4
gpt4 key购买 nike

从 API 获取一些数据时,我在 Chrome 控制台中收到错误 net::ERR_INSECURE_RESPONSE

此错误通常是由于未签名的证书造成的;但是,这不是问题,因为我有有效且签名的证书。

该错误根本不会经常发生,如果我重新启动 Chrome 浏览器,该错误就会消失。它也根本不会出现在任何其他浏览器中(在 Safari、Mozilla、Opera 上测试)

知道为什么会发生这种情况吗?这只是浏览器错误吗?

最佳答案

当您从 Chrome 55 更新到 Chrome 56 (56.0.2924.87) 时,会发生这种情况。
这是安全执法力度的加强。
它不会通过重新启动浏览器而消失,并且这不是一个错误。

Mountain View says it's hoping you don't ever encounter the message, because Certificate Authorities are required to stop issuing SHA-1 certificates in 2016. Just in case, Google plans to continue issuing warnings until Chrome completely stops supporting SHA-1 on January 1st, 2017. When that day comes, a website that still uses the function will trigger a fatal network error. (Source: Engadget.com)

如果发生这种情况,最可能的原因是您(或网站)的 SSL 证书使用 SHA1。
SHA1 已损坏,使用 SHA1 的 SSL 证书不再安全(Chrome 已经很长时间向您展示这一点了 - 现在它会阻止 NET::ERR_CERT_WEAK_SIGNATURE_ALGORITHM )。

另一个可能的原因是您的 SSL 证书已过期
另外,您应该禁用 SSL2 和 SSL3 的向后兼容性 ( Poodle Attack )。
您应该仅使用 TLS (SSL 3.1+)。

要测试您域的 SSL 证书,您可以使用 SSL labs SSL test .

要查明问题到底是什么:打开 Chrome 开发者控制台(CTRL + SHIFT + J 或 F12)并切换到安全选项卡

Security

Console

Details

了解更多信息:
https://support.google.com/chrome/answer/95617?visit_id=1-636221396724527190-3454695657&p=ui_security_indicator&rd=1

仅供引用:

SHA-1 has been growing weaker and more insecure everyday for a decade now, which is dangerous considering we tend to trust websites with "https://" in their URLs. Other browsers like Mozilla Firefox and Microsoft Edge also plan to stop supporting it in an effort to encourage website owners to switch to more secure SHA-2 certificates as soon as possible.

如果您迫切需要解决这个问题(您需要先关闭所有正在运行的 Chrome 实例 - 否则它将无法工作):

chrome --args --ignore-certificate-errors

请注意:请勿在 Chrome 实例中启用这些命令行设置的情况下使用网上银行或 Gmail。

关于google-chrome - Chrome 中的 net::ERR_INSECURE_RESPONSE,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/37355890/

29 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com