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

steveltn · 2013年03月08日 · 最后由 steveLTN 回复于 2013年03月09日 · 5329 次阅读

$ 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.

需要 登录 后方可回复, 如果你还没有账号请 注册新账号