Ruby on Rails - bundle install fails with SSL certificate error

Share this post:

After a fresh install of Ruby and Ruby on Rails on a new Windows 7 machine, running "bundle install" in my Rails 3 project results in the following SSL certificate verification error:

Gem::RemoteFetcher::FetchError: SSL_connect returned=1 errno=0 state=SSLv3 read  
server certificate B: certificate verify failed (  
An error occurred while installing rake (, and Bundler cannot continue.  
Make sure that `gem install rake -v ''` succeeds before bundling.  

This was a bug that was fixed and running the following command fixed my issue:

gem update --system  

I found this solution on stack overflow, but it is buried at the moment and difficult to reference. Hope this helps someone!


comments powered by Disqus