Im在OSX 10.10.5上,並使用RVM和ruby 2.3.1版本。當我運行gem install <gem_name>
我得到以下錯誤嘗試安裝寶石時,SSL證書驗證失敗錯誤
Unable to download data from 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 /etc/openssl/cert.pem: Up to date.
Certificates for /usr/local/etc/openssl/cert.pem: Up to date.
我又做了rvm osx-ssl-certs update all
,但仍繼續發生錯誤。也試圖做gem update --system
給出了同樣的錯誤。
的ruby -ropenssl -e 'p OpenSSL::OPENSSL_VERSION'
輸出是"OpenSSL 1.0.2h 3 May 2016"
任何方式解決這一問題?
謝謝
終於這對我來說是固定的。對於面臨同樣問題的其他人,我的工作是https://github.com/tenex/rails-assets/issues/239#issuecomment-87108900。 – Jim