How to solve SSL error of RubyGems

Author: zemna
Date: April 17, 2021
Share this:

When you exeucte gem command, you may see SSL error like bellow.

SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed

This error is produced because of changes in infrastructure.

How to solve it?

1. Downlaod update package

Download update package from bellow link.

Download : rubygems-update-2.6.7.gem

2. Update RubyGems using Command Prompt

Execute Command Prompt and go to download folder. (ex. C:)

And execute bellow command.

C:>gem install --local C:rubygems-update-2.6.7.gem
C:>update_rubygems --no-ri --no-rdoc

After this, execute gem --version to check new version of RubyGems.

3. Uninstall rubygems-update gem

You can uninstall rubygems-update gem.

C:>gem uninstall rubygems-update -x
Removing update_rubygems
Successfully uninstalled rubygems-update-2.6.7


Share this:

Leave a Reply

Your email address will not be published. Required fields are marked *

Let's connect and create
something awesome together!
2023 - Copyright, All Rights Reserved, Made by ZEMNA.NET with ❤️
crossmenu linkedin facebook pinterest youtube rss twitter instagram facebook-blank rss-blank linkedin-blank pinterest youtube twitter instagram