Skip to content

Instantly share code, notes, and snippets.

@kagemusha
Created November 24, 2011 15:12
Show Gist options
  • Save kagemusha/1391549 to your computer and use it in GitHub Desktop.
Save kagemusha/1391549 to your computer and use it in GitHub Desktop.
SSL_connect...certificate verify failed Error on OSX using Rails
If running rails ... commands on OSX you get:
SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed
Then:
1. Install cert
sudo port install curl-ca-bundle
2. When running rails command, do
SSL_CERT_FILE=<certfile_path> rails...
where certfile_path should be /opt/local/share/curl/curl-ca-bundle.crt
There are also apparently ways to use keychain which i haven't tried.
More info here:
http://stackoverflow.com/questions/4528101/ssl-connect-returned-1-errno-0-state-sslv3-read-server-certificate-b-certificat
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment