Skip to content

Instantly share code, notes, and snippets.

@rodrigomaia
Created October 15, 2013 16:05
Show Gist options
  • Save rodrigomaia/6993990 to your computer and use it in GitHub Desktop.
Save rodrigomaia/6993990 to your computer and use it in GitHub Desktop.
Faraday::Error::ConnectionFailed SSL_connect
Erro => Faraday::Error::ConnectionFailed SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed
http://stackoverflow.com/questions/10775640/omniauth-facebook-error-faradayerrorconnectionfailed
I've fixed this on Mac OS X Lion 10.7.4 with this solution:
$ rvm remove 1.9.3 (or whatever version of ruby you are using)
$ rvm pkg install openssl
$ rvm install 1.9.3 --with-openssl-dir=$rvm_path/usr
after this you will need to download the missing cacert.pem file:
$ cd $rvm_path/usr/ssl
$ sudo curl -O http://curl.haxx.se/ca/cacert.pem
$ sudo mv cacert.pem cert.pem
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment