I'm using google/api_client for testing google drive service. When my rails app tried to authorize, on ssl ,the trouble occurred.
[Error Message]
SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed
I solved it like it.
1. Download the CA file from http://curl.haxx.se/ca/cacert.pem and copy it to /usr/local/etc/openssl/certs/ .
2. Add "export SL_CERT_FILE=/usr/local/etc/openssl/certs/cacert.pem" to ~/.bash_profile so that apps can it pick up.
[End]