chrome 报错 ERR_CERT_AUTHORITY_INVALID

场景:

本地调试https/wss程序,使用了openssl自签名的证书,解决方法:添加到信任证书

根据以下图片流程操作

  

 

然后 打开selfsigned.cer

 

 清空该网站缓存

 

参考资料:

https://superuser.com/questions/1083766/how-do-i-deal-with-neterr-cert-authority-invalid-in-chrome

https://github.com/lynckia/licode/issues/1149

更新:

按照以上方法,后来本地浏览器 Chrome 76又报错 Subject Alternative Name missing

按照网上的方法改 chrome://flags/#allow-insecure-localhost ,仍旧不能解决问题。

参考来源:

https://global.v2ex.com/t/365406

笔者最终使用mkcert生成本地自签名证书添加到信任证书访问,重开了一篇文章

https本地自签名证书添加到信任证书访问 大家可以移步访问

原文地址:https://www.cnblogs.com/passedbylove/p/12053410.html