2011-08-19 47 views
0

我想安装Cygwin中使用RVM红宝石,但我得到的错误:无法在Cygwin的安装使用RVM红宝石 - 卷曲的SSL证书问题

curl: (60) SSL certificate problem, verify that the CA cert is OK. Details: error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed More details here: http://curl.haxx.se/docs/sslcerts.html

我看这个问题: Curl Certificate Error when Using RVM to install Ruby 1.9.2

但不幸的是该解决方案对我无效,因为curl-config --ca没有显示任何内容。我用curl-config --configure进行了检查,看来这个软件包已经编译了--without-ca-bundle

我该如何解决这个问题?

回答

3

this是同样的问题。打开〜/ .rvm/scripts /获取并编辑每个“fetch_command = ...”行以获得-k选项。

+0

谢谢。不知何故,我错过了这个答案。或者我意识到我可以把-k放在curlrc中 – Daniel

+0

我正在调试这个问题。 CURL_CA_BUNDLE修复无效。 –

1

似乎在cygwin中curl没有随其CA证书捆绑包一起发货。您可以在http://curl.haxx.se/ca/cacert.pem下载它然后使用:

CURL_CA_BUNDLE=</path/to/cacert.pem> rvm install <ruby> 
0

如果您没有〜/ .rvm目录,请执行which rvm,然后编辑[rvm-path] /../ scripts/fetch。每个curl命令都需要-k。即:

... 

    fetch_command="curl -k -x${rvm_proxy} -f -L --create-dirs -C - " # -s for silent 

else 

    fetch_command="curl -k -f -L --create-dirs -C - " # -s for silent 
... 

这适用于Cygwin。