I ran into a strange issue today as I was trying to run bundle for a rails app I started building today.
Rosss-MacBook:postit_app (master) $ bundle install --without production Fetching gem metadata from https://rubygems.org/......... Fetching gem metadata from https://rubygems.org/.. Using rake (10.1.0) Using i18n (0.6.4) Using minitest (4.7.5) Gem::RemoteFetcher::FetchError: SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed (https://s3.amazonaws.com/production.s3.rubygems.org/gems/multi_json-1.7.7.gem) An error occurred while installing multi_json (1.7.7), and Bundler cannot continue. Make sure that `gem install multi_json -v '1.7.7'` succeeds before bundling.
Grr, I hate configuration issues and I haven’t quite discovered the knack for building my google searches
so the search returns some useful information.
It turned out to be a very simple fix so I thought I would post it here for the next time I might run into
this issue as I sure it will occur again and by the time it happens again, I most likely won’t remember the fix to resolve the problem.
There is a good answer on Github to that explains how to resolve the issue. The gist of the error was an outdated certificate. Here is the readers digest version to fix the problem.
Rosss-MacBook:postit_app (master) $ rvm -v
rvm 1.21.19 (master) by Wayne E. Seguin
Rosss-MacBook:postit_app (master) $ rvm osx-ssl-certs status all
Certificates for /usr/local/etc/openssl/cert.pem: Old.
Certificates for /etc/openssl/cert.pem: Old.
Rosss-MacBook:postit_app (master) $ rvm osx-ssl-certs update all
Updating certificates for /usr/local/etc/openssl/cert.pem: Updating certificates in ‘/usr/local/etc/openssl/cert.pem’.
Updated.
Updating certificates for /etc/openssl/cert.pem: Updating certificates in ‘/etc/openssl/cert.pem’.
mkdir: /etc/openssl: Permission denied
rosskinney password required for ‘mkdir -p /etc/openssl’:
Updated.
Boom, that fixed it so I am up and running!