I\'ve got two MacBooks (one on Mavericks, the other on Yosemite) and the same thing happens on both. After installing Ruby 2.2.3 with RVM, I get the following error:
Downloading http://curl.haxx.se/ca/cacert.pem and adding
export SSL_CERT_FILE=PATH_TO_THe_DOWNLOADED_FILE/cacert.pem
to the .bash_profile/.zshrc partially fixed the issue, because it throws the following error on my system:
Excon::Errors::SocketError: Unable to verify certificate, please set `Excon.defaults[:ssl_ca_path] = path_to_certs`, `ENV['SSL_CERT_DIR'] = path_to_certs`, `Excon.defaults[:ssl_ca_file] = path_to_file`, `ENV['SSL_CERT_FILE'] = path_to_file`, `Excon.defaults[:ssl_verify_callback] = callback` (see OpenSSL::SSL::SSLContext#verify_callback), or `Excon.defaults[:ssl_verify_peer] = false` (less secure).
Setting Excon.defaults[:ssl_verify_peer] to false in a Rails initializer (only on development/test envs) makes it work.
Update: Reinstalling 2.2.3 from source got rid of all my problems.
rvm remove 2.2.3
rvm install 2.2.3 --disable-binary