2012-05-17 62 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。这是重复的问题! (和我的回答)