ip2k / google-api-ruby-client

Automatically exported from code.google.com/p/google-api-ruby-client
Apache License 2.0
0 stars 0 forks source link

Can't tell client where SSL certs live? #25

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Maybe I'm missing something, but I don't see where you can tell the library 
where your SSL certs live. At least on Linux Mint, they're not found, so I end 
up with:

SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: 
certificate verify failed

In the OAuth2, you handle this by passing it options that it hands down to 
Faraday:

:connection_opts => {:ssl => { :ca_path => "/etc/ssl/certs" }}

But I'm not sure how to do the equivalent here.

Original issue reported on code.google.com by icamb...@gmail.com on 11 Dec 2011 at 4:40

GoogleCodeExporter commented 9 years ago
*OAuth2 gem

Original comment by icamb...@gmail.com on 11 Dec 2011 at 4:41

GoogleCodeExporter commented 9 years ago
Just set SSL_CERT_FILE environment variable to your cacert.pem file.

Original comment by bobaman@google.com on 13 Dec 2011 at 5:17