How to solve SSL error of RubyGems

August 7, 2020

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


Notify of
Inline Feedbacks
View all comments
Would love your thoughts, please comment.x
linkedin facebook pinterest youtube rss twitter instagram facebook-blank rss-blank linkedin-blank pinterest youtube twitter instagram