歡迎來到Linux教程網
Linux教程網
Linux教程網
Linux教程網
Linux教程網 >> Linux基礎 >> Linux教程 >> Ubuntu下GoAgent訪問Youtube,Google相關站點SSL錯誤解決

Ubuntu下GoAgent訪問Youtube,Google相關站點SSL錯誤解決

日期:2017/2/28 14:29:04   编辑:Linux教程

引言:在Ubuntu系統上,訪問Youtube總是報證書無法識別,由於其是基於SSL協議而來,所以,就是無法正常訪問,終於找到類似網友的解決方案。

該辦法是從互聯網上找到的,具體解決辦法如下:

google plus, twitter等網站遇到“the site's security certificate is not trusted ****”此類錯誤提示。其實這是因為goagent證書沒有導入到系統的證書庫中,而Google Chrome浏覽器本身無法導入證書(這與Firefox不同),它使用系統的證書庫。為此,需要我們手動導入。

1,安裝證書導入工具:

sudo apt-get install libnss3-tools

2, 將goAgent文件夾內的證書文件CA.crt導入(下面中括號內是證書的絕對路徑,因人而異,注意)

certutil -d sql:$HOME/.pki/nssdb -A -t TC -n "goagent" -i [/path/to/goagent/local/CA.crt]

之後重新打開G+等就沒有提示證書錯誤了。

二,google plus的圖標顯示不正常。據說原因是因為這些圖像保存在googleusercontent.com域,需要重新設置host ip。

1,root下打開host文件:sudo gedit /etc/hosts

2,把以下內容添加到host文件:173.194.38.143 ssl.gstatic.com

3,在goagent添加新規則:*://gstatic.com/*

Ubuntu 14.04 下載、安裝、配置的相關知識 http://www.linuxidc.com/Linux/2014-04/100370.htm

Ubuntu 14.04系統下載地址:http://www.linuxidc.com/Linux/2014-04/100352.htm

Windows 7下硬盤安裝Ubuntu 14.04圖文教程 http://www.linuxidc.com/Linux/2014-04/100369.htm

更多Ubuntu相關信息見Ubuntu 專題頁面 http://www.linuxidc.com/topicnews.aspx?tid=2

Copyright © Linux教程網 All Rights Reserved