ubuntu chrome 打開自簽名的證書的服務器的https時,提示 Your connection is not private. 錯誤代碼:NET::ERR_CERT_AUTHORITY_INVALID.
為解決這個問題根據具體情況分下面兩種方法時行處理:
1、若訪問的是本機 localhost 的,設置谷歌瀏覽器自動接受 自簽名的本機服務器證書
在chrome中輸入 (Simply paste this in your chrome):
chrome://flags/#allow-insecure-localhost
可以看到高亮顯示的文字(You should see highlighted text saying): Allow invalid certificates for resources loaded from localhost
點擊(Click) Enable. 最后 在該頁最下方點擊 RELAUNCH NOW。
如下圖:
2、設置 chrome忽略證書錯誤(此法會忽略所有網站的證書錯誤,慎用)
使用下面參數命令行打開 谷歌瀏覽器 即可忽略網站證書的錯誤
--ignore-certificate-errors
google-chrome --ignore-certificate-errors https://115.239.210.27/