Last Updated: February 25, 2016
·
193
· koxzi95

Rubygems SSL Fix (windows)

(this post is relevant at time of writing, they'll probably patch it)

So have you been getting the annoying SSL error with Ruby on Windows? There is an easy way to fix it.

During this short guide I'll only be referring to one version so for whichever you have just switch the version numbers around.

Open up your CMD with Ruby (and rails) and enter: gem -v

This should give the current gem version installed on your system. Hopefully you'll have 1.8X or above.

Go and grab this file for whichever version you have:

1.8.X: https://github.com/rubygems/rubygems/releases/download/v1.8.30/rubygems-update-1.8.30.gem

2.0.X: https://github.com/rubygems/rubygems/releases/download/v2.0.15/rubygems-update-2.0.15.gem

2.2.X: https://github.com/rubygems/rubygems/releases/download/v2.2.3/rubygems-update-2.2.3.gem

Place this file in your C:\ preferrably. Or somewhere which you can easily access with the CMD.

Enter this command: gem install --local C:\rubygems-update-x.x.x.gem
(x.x.x being the version you downloaded)

After that completes run: update_rubygems --no-ri --no-rdoc

Check your version with gem -v. This should report the version you downloaded!

Now uninstall rubygems-update with: gem uninstall rubygems-update -x

That should be it!

Any questions leave a comment below.