使用HTTPS源时,在Rubygems上Dreaded OpenSSL::SSL::SSLError


$ 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混乱?

这里详细解释了解决方案:https://railsapps.github.io/openssl-certificate-verify-failed.html

最新更新