read

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 https://rubygems.org 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 https://rubygems.org
gem sources -a http://rubygems.org

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


Published

Image

taylorqj

A collection of software development, thoughts, and vices.

Back to Overview