使用HTTPS源时Rubygems上的可怕OpenSSL :: SSL :: SSLError

时间:2013-02-26 16:35:28

标签: rubygems openssl

$ bundle 
The source :rubygems is deprecated because HTTP requests are insecure.
Please change your source to 'https://rubygems.org' if possible, or 'http://rubygems.org' if not.

好的,将Gemfile更改为:

source 'https://rubygems.org'

但是:

$ bundle 
    Unfortunately, a fatal error has occurred. Please see the Bundler
    troubleshooting documentation at http://bit.ly/bundler-issues. Thanks!
/Users/ale/.rvm/rubies/ruby-2.0.0-p0/lib/ruby/2.0.0/net/http.rb:917:in `connect': SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed (OpenSSL::SSL::SSLError)

如何修复这种无休止的SSL混乱?

1 个答案:

答案 0 :(得分:5)