It took me a good hour to resolve this issue. I’m hoping that the search engines pick this up for you and save you some time.
I’m thinking about switching from Blogger to Jekyll, which is built with Ruby. When I ran the gem command to install jekyll:
I got the following error:
Could not find a valid gem ‘jekyll’ (>= 0), here is why:
Unable to download data from https://rubygems.org/ - SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed (https://rubygems.org/latest_specs.4.8.gz))
After a lot of searching, I found this comment on GitHub by niceume:
I use Windows 8.1 and just re-installed Ruby 2.0 for some reasons.
The same error appeared.
And I finally solved it by following the instruction in this link. ( https://gist.github.com/fnichol/867550 )
1. Install Ruby2.0 by RubyInstaller
2. Install DevKit
3. Download .pem file (The script in the link above download to C:\RubyInstaller\ )
4. Set SSL_CERT_FILE (from Control Panel)
5. Reboot (I don’t know why but at first I couldn’t make gem work by just setting the variable by “set SSL_CERT_FILE=C:\RailsInstaller\cacert.pem” )
6. Ruby gem works fine !!