2017-02-16 41 views
0

突然之間,我只能做SSL連接問題使用HTTPS時的RubyGems

> gem sources --remove https://rubygems.org/ 
> gem sources --add http://rubygems.org/ 

與源爲HTTPS安裝後的寶石,誤差Error fetching https://rubygems.org/: SSL_connect returned=1 errno=0 state=error: certificate verify failed (https://api.rubygems.org/specs.4.8.gz)

不過,我更新了我的證書和rvm osx-ssl-certs status all回報

Certificates for /opt/local/etc/openssl/cert.pem: Up to date. 
Certificates for /etc/openssl/cert.pem: Up to date. 
Certificates for /usr/local/etc/openssl/cert.pem: Up to date. 

我在運行OS X Yosemite 10.10.5,紅寶石2.3.0,RVM 1.29.0,OpenSSL的1.0.11

回答