2016-03-03 126 views
2

我一直試圖在我的MacBook Pro上安裝meteor,並且一直面臨着認證問題。我得到以下錯誤:curl SSL認證錯誤

curl: (60) SSL certificate problem: self signed certificate in certificate chain More details here: https://curl.haxx.se/docs/sslcerts.html

curl performs SSL certificate verification by default, using a "bundle" of Certificate Authority (CA) public keys (CA certs). If the default bundle file isn't adequate, you can specify an alternate file using the --cacert option. If this HTTPS server uses a certificate signed by a CA represented in the bundle, the certificate verification probably failed due to a problem with the certificate (it might be expired, or the name might not match the domain name in the URL). If you'd like to turn off curl's verification of the certificate, use the -k (or --insecure) option.

使用curl --insecure https://install.meteor.com | ssh後,我收到以下錯誤信息:

Downloading Meteor distribution

curl: (60) SSL certificate problem: unable to get local issuer certificate More details here: https://curl.haxx.se/docs/sslcerts.html

curl performs SSL certificate verification by default, using a "bundle" of Certificate Authority (CA) public keys (CA certs). If the default bundle file isn't adequate, you can specify an alternate file using the --cacert option. If this HTTPS server uses a certificate signed by a CA represented in the bundle, the certificate verification probably failed due to a problem with the certificate (it might be expired, or the name might not match the domain name in the URL). If you'd like to turn off curl's verification of the certificate, use the -k (or --insecure) option. Installation failed.

(注意:安裝失敗的消息)。

請任何人都可以幫我解決這個問題。

在此先感謝。 編輯:

運行curl install.meteor.com | sh -x就像費奧多爾後問我跑我得到了以下信息:

+0

如果需要,請索取更多信息。 – UsamaMan

回答

0

我重新安裝了操作系統,發現錯誤。我知道這不應該是解決方案,但這是對我有用的。我希望別人發佈更好的解決方案。

1

快速的回答是:你本身下載安裝腳本調用捲曲下載壓縮包,而它這樣做無-k選項:

$ curl -s https://install.meteor.com | grep curl 
curl --progress-bar --fail "$TARBALL_URL" | tar -xzf - -C "$INSTALL_TMPDIR" -o 

要按捲曲到它,你可以添加--insecure您curlrc:

$ echo insecure >> ~/.curlrc 

或者只是使用http:

$ curl http://install.meteor.com 

,但我會強烈建議尋找到問題本身 - 有可能是有人MitM'ing你。 install.meteor.com證書對我來說似乎很好。

+0

非常抱歉,我不太瞭解終端命令。運行第二個命令後,這是我得到: _curl:(3) malformed tar:could not chdir to''_ – UsamaMan

+0

run curl https://install.meteor.com | sh -x 以查看它何時發生故障 –

+0

我在編輯我的問題以供您閱讀錯誤。 – UsamaMan

1

這是我解決這個問題的方法。

  1. 瀏覽Web瀏覽器中的安裝腳本。 (https://install.meteor.com/

  2. 保存在您的家腳本install_meteor.sh

  3. 在終端,運行 「SH install_meteor.sh」

如果運行這個樣子,你會看到該錯誤實際上是在安裝腳本中發生的。你必須做的是編輯腳本,使其忽略證書驗證。

  1. vi install_meteor.sh編輯安裝腳本。

  2. 查找行 「捲曲--progress吧--fail 」$ TARBALL_URL「 |焦油-xzf - -C 」$ INSTALL_TMPDIR「 -o」

  3. 更改爲「捲曲-k - -progress-bar --fail「$ TARBALL_URL」| tar -xzf - -C「$ INSTALL_TMPDIR」-o「

  4. 保存並運行」sh install_meteor。sh」的一次。

0

我就遇到了這個問題,當上VMbox運行Ubuntu 16,並通過VPN路由安裝在瀏覽器中對我的問題是檢查https://install.meteor.com該CA被顯示過期,也續期後日期已經過去了

我的虛擬機的日期已關閉幾天(不知道這是怎麼發生的)和時間是由我的VPN自動設置位於不同的縣。日期和時間糾正了CA問題。

注:在我的情況下,日期是4天,但是,即使時間和日期設置正確,仍然會出現此錯誤的小窗口—它僅取決於CA何時到期並更新相對到您的系統日期/時間設置。您可以在一天內再次嘗試curl,或者更快的解決方案— 適當地設置您的日期/時間,然後重試。