本地自签名证书在 Firefox 中有效,但在 Chrome 中无效?
在 Firefox 中,我可以访问测试本地服务器:
https://localhost:3000/
但是在 Chrome 中,我收到此错误:
攻击者可能试图从本地主机窃取您的信息 (例如,密码、消息或信用卡)。了解更多
NET::ERR_CERT_INVALID
这是在我的本地主机上,我什至手动将自签名证书添加到 Chrome。
我按照此处的说明进行操作:
这是我添加证书的屏幕:
In Firefox I can go to a test local server:
https://localhost:3000/
However in Chrome I get this error:
Attackers might be trying to steal your information from localhost
(for example, passwords, messages, or credit cards). Learn moreNET::ERR_CERT_INVALID
This is on my localhost and I have even manually added the self-signed certificate to Chrome.
I followed these directions here:
and this is the screen were I added the cert:
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我有同样的问题。但场景有点不同。
对于我的自签名服务器证书,我有 NET::ERR_CERT_AUTHORITY_INVALID,
但对于另一个客户端证书,我有NET::ERR_CERT_INVALID(这不允许继续),
我是在KeyStore Explorer应用程序的帮助下生成这些证书的。
您可以在其中添加已准备好的模板,例如“SSL 服务器”或“SSL 客户端”:
因此,“SSL 服务器”预期 ERR_CERT_AUTHORITY_INVALID 警告,而 SSL 客户端则收到该主题的错误。 (ERR_CERT_INVALID)
不同之处在于“扩展密钥使用”扩展选项。
I had the same issue. But a bit different scenario.
For my self-signed server certificate I have NET::ERR_CERT_AUTHORITY_INVALID,
but for another client certificate I have NET::ERR_CERT_INVALID (this does not allow to proceed)
I was generated these certs with help of KeyStore Explorer app.
And there you can add already prepared template like 'SSL Server' or 'SSL Client':
So, 'SSL Server' had expected ERR_CERT_AUTHORITY_INVALID warning and SSL Client has the error from the topic. (ERR_CERT_INVALID)
The difference is in the option of "Extended Key Usage" extension.