Skip to content

Instantly share code, notes, and snippets.

@vargeorge
Created September 22, 2012 23:19
Show Gist options
  • Save vargeorge/3768187 to your computer and use it in GitHub Desktop.
Save vargeorge/3768187 to your computer and use it in GitHub Desktop.
FIX for Faraday::Error::ConnectionFailed SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed
ISSUE:
Ran into this errors when adding Aumniauth with provider strategies such as Google to my rails app on Mac OS X development box. Clicking on 'Sign in with ...' (E.g. Sign in with Google), resulted in an error page:
Faraday::Error::ConnectionFailed
SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed
Faraday::Error::ConnectionFailed SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed
DIAGNOSIS:
This error is due to the fact Ruby didn't find the Certification Authority (CA) certificates to verify the secured web server.
FIX:
From terminal window run:
$ curl http://curl.haxx.se/ca/cacert.pem -o ~/.rvm/usr/ssl/cert.pem
This fixes the problem.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment