I used to get a certificate verification error when I used the https:/rubygems.org.
A workaround was suggested: remove the "s" (so I end up using http instead of https). It worked for some time but today after starting a new rails application rails new 'filename'
I got the same certificate validation error:
Gem::RemoteFetcher::FetchError: SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed (https://rubygems.org/gems/mime-types-data-3.2016.0521.gem) An error occurred while installing mime-types-data (3.2016.0521), and Bundler cannot continue. Make sure that
gem install mime-types-data -v '3.2016.0521'
succeeds before bundling.
I typed gem sources
only to find that https://rubygems.org doesn't even exist.
$ gem sources
*** CURRENT SOURCES ***
http://rubygems.org
I go to the gemfile and I find
source 'https://rubygems.org'
What could be the problem?
http://rubygems.org
redirects tohttps://rubygems.org
so you are stuck with your original problem. – Steffen Ullrich/C=BE/O=GlobalSign nv-sa/OU=Root CA/CN=GlobalSign Root CA
which is widely trusted. – rlandster