2012-05-17 58 views
0

我試圖下載RVM和我得到這個錯誤信息:下載RVM錯誤

error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed

More details here: http://curl.haxx.se/docs/sslcerts.html

curl performs SSL certificate verification by default, using a "bundle" of Certificate Authority (CA) public keys (CA certs). The default bundle is named curl-ca-bundle.crt; 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.

什麼是解決這個問題的最好方法是什麼?

+0

您使用哪個命令下載RVM? –

+0

這是我使用的命令:$ curl -L get.rvm.io | bash -s stable – ppreyer

+0

請問這有助於:http://stackoverflow.com/a/6241614/604041? –

回答

-1

看起來他們最近改變了命令。試試這個:

bash -s stable < <(curl -s https://raw.github.com/wayneeseguin/rvm/master/binscripts/rvm-installer) 
echo '[[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm"' >> ~/.bashrc 
. ~/.bashrc 

你也可以在你的命令中加上-k。我認爲他們的證書不好。 Github的很好。

+0

嘿尼克,當我使用該命令時,它只需要我到下一行,沒有任何反應。 – ppreyer

+0

既然那是最新命令? RVM站點和GitHub倉庫自述文件都沒有使用它。 –

+0

這與'curl相同https://raw.github.com/wayneeseguin/rvm/master/binscripts/rvm-installer | bash -s stable「,它只是一種不同的語法。後者在RVM站點上(安裝RVM,頁面底部) – karatedog

0

您需要閱讀輸出並按照說明操作!

另外,如果你不關心安全性,這樣做:

echo insecure >> ~/.curlrc 

和BTW。這是重複的問題! (和我的回答)