Im on OSX 10.10.5 and using RVM and ruby version 2.3.1. When i run gem install <gem_name>
i get the following error
Unable to download data from https://rubygems.org/ - SSL_connect returned=1 errno=0 state=error: certificate verify failed (https://api.rubygems.org/specs.4.8.gz)
I tried with different versions of ruby but still get the same error. When i run the following command
rvm osx-ssl-certs status all
I get:
Certificates for /etc/openssl/cert.pem: Up to date.
Certificates for /usr/local/etc/openssl/cert.pem: Up to date.
I have done rvm osx-ssl-certs update all
again but still the error persists. Also trying to do gem update --system
gives the same error.
The output of ruby -ropenssl -e 'p OpenSSL::OPENSSL_VERSION'
is "OpenSSL 1.0.2h 3 May 2016"
Any way to fix this ?
Thank You