使Chrome接受自签名的本地主机证书

泄露秘密 提交于 2020-08-09 18:49:17

问题:

I have created a self-signed SSL certificate for the localhost CN. 我已经为本地主机CN创建了一个自签名SSL证书。 Firefox accepts this certificate after initially complaining about it, as expected. 如预期的那样,Firefox在最初抱怨它之后接受了该证书。 Chrome and IE, however, refuse to accept it, even after adding the certificate to the system certificate store under Trusted Roots. 但是,即使将证书添加到“受信任的根”下的系统证书存储中,Chrome和IE也拒绝接受它。 Even though the certificate is listed as correctly installed when I click "View certificate information" in Chrome's HTTPS popup, it still insists the certificate cannot be trusted. 即使我在Chrome的HTTPS弹出窗口中单击“查看证书信息”时列出的证书已正确安装,它仍然坚持认为证书不可信任。

What am I supposed to do to get Chrome to accept the certificate and stop complaining about it? 我应该怎么做才能让Chrome接受证书并停止抱怨呢?


解决方案:

参考一: https://stackoom.com/question/Vo2G/使Chrome接受自签名的本地主机证书
参考二: https://oldbug.net/q/Vo2G/Getting-Chrome-to-accept-self-signed-localhost-certificate
标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!