Rails ruby2.0, bundle install 的时候说 rubygems.org SSL 证书错误

steveltn · March 08, 2013 · Last by steveLTN replied at March 09, 2013 · 5522 hits

$ bundle install Fetching source index from https://rubygems.org/ Resolving dependencies... Could not verify the SSL certificate for https://rubygems.org/. There is a chance you are experiencing a man-in-the-middle attack, but most likely your system doesn't have the CA certificates needed for verification. For information about OpenSSL certificates, see bit.ly/ssl-certs. To connect without using SSL, edit your Gemfile sources and change 'https' to 'http'.

用 1.9.3 完全正常 按照http://railsapps.github.com/openssl-certificate-verify-failed.html的做法,无效 现在 bundler 是 1.3.1, gem 版本是 2.0.2, OS X 上 openssl 版本是 OpenSSL 1.0.1e。

虽然可以把 https 改成 http,但总觉得这不是正确的方法啊!

Thanks! Reinstalling ruby using newest rvm did solve the problem.

You need to Sign in before reply, if you don't have an account, please Sign up first.