There has been this awfully stupid error when I’ve been trying to install gems through ruby on windows. It’s trying to connect to when windows decides to explode and not allow you to move forward.

ERROR:  While executing gem ... (Gem::RemoteFetcher::FetchError)
    SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed

#Finally found a solution that has worked for two Windows builds. Run these commands in your command line.

gem sources -r
gem sources -a

This will remove the default source for gems ruby will look for and add the non-https url.

If a gem that you have installed has a dependency with their own specified rubygems url you may get this error again. You can fix this by editing the problem gem and changing their url to the non-https version.

Blog Logo

Taylor Jones




A collection of software development, thoughts, and vices.

Back to Overview