Recently i got an issue saying Gem::RemoteFetcher::FetchError: SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed ( and mostly struggle to work with my code, and finally, found the solution in the Stackoverflow and it helped me to carry on working with the code.

Make sure you use latest rvm: rvm get stable Then you can do two things:

Update certificates: rvm osx-ssl-certs update all Update rubygems: rvm rubygems latest