作爲自動構建的一部分,我們從github運行下載一些代碼。小例子:Wget失敗,出現證書錯誤
wget github.com
近日,命令開始證書錯誤而失敗:
URL transformed to HTTPS due to an HSTS policy
--2017-10-05 11:43:45-- https://github.com/
Resolving github.com (github.com)... 192.30.253.112, 192.30.253.113
Connecting to github.com (github.com)|192.30.253.112|:443... connected.
ERROR: cannot verify github.com's certificate, issued by 'CN=DigiCert SHA2 Extended Validation Server CA,OU=www.digicert.com,O=DigiCert Inc,C=US':
Unable to locally verify the issuer's authority.
我試圖更新證書存儲,和wget本身:
update-ca-certificates
apt-get install wget
錯誤仍一樣。 我的wget版本是GNU Wget 1.17.1,操作系統是Ubuntu 16.04.3。
我知道,但我不想讓這部分構建過程。在安全方面看起來不是一個好主意。 – maniexx
是的,我知道。僅建議一種解決方法。 – OscarAkaElvis