場景:
本地調試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本地自簽名證書添加到信任證書訪問 大家可以移步訪問