2012-01-29 60 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 

希望這會有所幫助,文森特

相關問題