當我試圖從dl.google.com下載我收到此錯誤:如何使用curl修復證書錯誤?
ERROR: The certificate of `dl.google.com' is not trusted.
ERROR: The certificate of `dl.google.com' hasn't got a known issuer.
這裏是整個命令輸出
$ curl https://dl.google.com/dl/cloudsdk/release/install_google_cloud_sdk.bash
| bash
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 3607 100 3607 0 0 2820 0 0:00:01 0:00:01 --:--:-- 3125
bash: line 77: [: Files: binary operator expected
wget -O - https://dl.google.com/dl/cloudsdk/release/google-cloud-sdk.tar.gz > tm
p.4wwaU246zk/google-cloud-sdk.tar.gz
--2013-12-12 11:05:41-- https://dl.google.com/dl/cloudsdk/release/google-cloud-
sdk.tar.gz
Resolving my.proxy.com my.proxy.com)... x.x.x.x
Connecting to my.proxy.com (my.proxy.com)|x.x.x.x|:1234... conne
cted.
ERROR: The certificate of `dl.google.com' is not trusted.
ERROR: The certificate of `dl.google.com' hasn't got a known issuer.
閱讀了這個問題:How do I fix certificate errors when running wget on an HTTPS URL in Cygwin?一個選項是 「添加 - 在wget命令行上沒有檢查證書選項「但由於我使用curl而不是wget,上面的命令是否有類似的選項?
更新:我已經試過
curl -k https://dl.google.com/dl/cloudsdk/release/install_google_cloud_sdk.ba
sh | bash
但同樣的錯誤,可以在代理/防火牆阻止連接?
謝謝,請參閱問題更新。代理/防火牆可以阻止連接嗎? –
好吧,我看到你的更新。這與防火牆無關。這是安裝腳本的問題。 **出於安全原因,我會刪除該例中的'-k' ** – hek2mgl
「出於安全原因,我將刪除該例中的-k」您是否介意闡述「安全原因」? –