2012-01-29 81 views
0

得到了ruby 1.9.3/rails 2.3.1通过rvm安装(最后在通过rvm pkg安装openssl之后工作)。但现在越来越OpenSSL的:: SSL:SSLError尝试连接到github上(也可能是别的):安装ruby 1.9.3 rails 3.2.1之后,得到OpenSSL :: SSL :: SSLError:对简单的请求

- > IRB 1.9.3-P0:001>要求 '开URI' 1.9.3-P0 :002>开( 'https://github.com/') OpenSSL的:: SSL :: SSLError:所以SSL_connect返回= 1个错误号= 0状态的SSLv3 =读服务器证书B:证书验证失败

- 在"Certificate verify failed" OpenSSL error when using Ruby 1.9.3试过溶液但是,这并不是窝RK。

不确定问题出在OpenSSL上,但似乎是问题所在。

+0

你添加了吗r公钥给你的github账户? – sosborn 2012-01-29 00:32:06

+0

是的 - 这是所有工作正常红宝石1.9.3安装。 – 2012-01-30 00:19:36

+0

你有哪个版本的OpenSSL? Ruby 1.9.2看起来像OpenSSL 1.0.0和1.0.1,但是Ruby 1.9.3在1.0.1中有问题。 https://bugs.launchpad.net/ubuntu/+source/openssl/+bug/965371 - 似乎是对问题的描述 – PrasannaK 2012-04-27 12:20:08

回答

1

有一堆的解决方案,可能为你工作在这里:

http://railsapps.github.com/openssl-certificate-verify-failed.html

如果仍不能在这里工作有什么解决了这个问题对我来说:

rvm pkg install openssl 
rvm install 1.9.3-p374 –with-openssl-dir=$rvm_path/usr 
cd $rvm_path/usr/ssl 
curl -O http://curl.haxx.se/ca/cacert.pem 
mv cacert.pem cert.pem 

希望这会有所帮助,文森特

相关问题