I recently upgraded to Mac OS X 10.11, El Capitan. I did reinstall all my rubies, but I ended up needing a bit more than that...
rvm osx-ssl-certs update all # or whichever Ruby you need rvm reinstall 2.2.3 --disable-binary # If you use a specific gemset rvm use 2.2.3@myproject # use -v for parity with specific version on Heroku/Travis gem install bundler -v 1.9.7 bundle install
Fixes this error:
SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed:
I have integrated this fix into my longer writeup on upgrading to Mac OS X El Capitan.