对rubygems使用https时出现SSL连接问题

对rubygems使用https时出现SSL连接问题,ruby,ssl,Ruby,Ssl,突然间,我只能在完成后安装gems > gem sources --remove https://rubygems.org/ > gem sources --add http://rubygems.org/ 源为https时,错误为error fetchinghttps://rubygems.org/: SSL\u connect返回=1 errno=0 state=错误:证书验证失败(https://api.rubygems.org/specs.4.8.gz) 但是,我更新了我的

突然间,我只能在完成后安装gems

> gem sources --remove https://rubygems.org/
> gem sources --add http://rubygems.org/
源为https时,错误为
error fetchinghttps://rubygems.org/:
SSL\u connect返回=1 errno=0 state=错误:证书验证失败(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、Ruby 2.3.0、RVM 1.29.0、openssl 1.0.11

$ brew update && brew install openssl
$ cd /usr/local/etc/openssl/certs
$ curl -O http://curl.haxx.se/ca/cacert.pem
$ mv cacert.pem cert.pem
$ /usr/local/opt/openssl/bin/c_rehash