Bundle Install Fails on SSL connect for Rake gem

Hello - I’m just getting started with Rails, been a ColdFusion programmer for 10+ years. I’m trying to install Rails and get set up on my local dev and it mostly worked, except at the very end of the install using RubyInstaller, I get this message about a particular Gem that can’t be installed:

Gem::RemoteFetcher::FetchError: SSL_connect returned=1 errno=0 state=SSLv3 read

server certificate B: certificate verify failed (https://rubygems.org/gems/rake-

10.4.2.gem)

An error occurred while installing rake (10.4.2), and Bundler cannot continue.

Make sure that gem install rake -v '10.4.2' succeeds before bundling.

Does anyone know how I could fix that error?

I was able to go to the URL and download the gem file directly, but not sure how to install it so that the Bundle installer will see that it’s been put in and finish its installation routine when I run “bundle install”.

Any help would be very much appreciated.

Thanks!
Cindi

Cindi,

  1. did you try this: http://stackoverflow.com/questions/10246023/bundle-install-fails-with-ssl-certificate-verification-error

  2. Tweet @rubygems_status or @dwradcliffe if you think the problem is on their end. (but more likely is that you’re using an old version of bundler as explained in the link above)

-Jason

Hi Jason - yes, I did actually search some more on Google and found a similar post with that same answer:

gem source -r [https://rubygems.org/](https://rubygems.org/)

gem source -a [http://rubygems.org/](http://rubygems.org/)

bundle install

Now it goes through without error.

Thanks!
Cindi

Also… For reference sake of anyone in the future reading this, note that I was using RailsInstaller (from www.railsinstaller.org) to set up my local dev Rails environment when this happened.

Cindi

Hi Jason - yes, I did actually search some more on Google and found a similar post with that same answer:

gem source -r [https://rubygems.org/](https://rubygems.org/)

gem source -a [http://rubygems.org/](http://rubygems.org/)

bundle install

Now it goes through without error.

PLEASE DON’T DO THIS. Downloading and running code from an insecure link automatically is a short slip’n’slide to being hacked.

If you’re on OS X, check out this post for some troubleshooting steps:

http://mislav.uniqpath.com/2013/07/ruby-openssl/

If you’re on another OS, check into what you need to do to update the CA cert bundle in the operating system.

The underlying issue is that the OpenSSL library can’t validate the certificate rubygems.org is sending.

–Matt Jones

I find this to be easier instruction http://stackoverflow.com/questions/19150017/ssl-error-when-installing-rubygems-unable-to-pull-data-from-https-rubygems-o/19151697#19151697