Gem Install/SSL Certificate Verify Failed

Solved. Restored old copy of ruby193 & rubygems folder, and ran gem
update. Everything is back to normal.

“Gem Install/SSL Certificate Verify Failed”.

C:\Ruby\tmp>gem install mysql2 #(but the same for any gem)
ERROR: Could not find a valid gem ‘mysql2’ (>= 0), here is why:
Unable to download data from

Hi, I had just updated rubygems to 2.0.6 on Ruby 1.9.3,Windows-7, and
got the error above.
Can someone please let me know what to do,
cos I haven’t a clue howto install mysql2.


… then
I switched my environment to Ruby 2.0 (on the same machine) and the
SSL problem goes away ! wierd. rubygems is 2.0.6 in both Ruby 2.0 and
However, mysql2 doesnt seem to compile in 2.0.

… the workaround for the SSL problem
Download the gem file manually from, and gem install using
the downloaded file.
Any alternative solution greatfully accepted.