Ruby Gem Fix SSL Certificate Verification Error

How to fix error and get back to https with ssl:
The reason is old rubygems. So we need to remove ssl source to be able to update gem –system which includes rubygems and so on. after this we can feel free to get back to ssl source.

gem sources -r - to temporarily remove secure connection
gem sources -a - add insecure connection
gem update --system - now we're able to update rubygems without SSL

after updating rubygems do vice versa

gem sources -r - to remove insecure connection
gem sources -a - add secure connection

Now you’re able to update gems using secure connection.

gem update

Workaround RubyGems’ SSL errors on Ruby for Windows (RubyInstaller)

Tinggalkan Balasan

Isikan data di bawah atau klik salah satu ikon untuk log in:


You are commenting using your account. Logout /  Ubah )

Foto Google

You are commenting using your Google account. Logout /  Ubah )

Gambar Twitter

You are commenting using your Twitter account. Logout /  Ubah )

Foto Facebook

You are commenting using your Facebook account. Logout /  Ubah )

Connecting to %s