podio / podio-rb

The official Ruby wrapper for the Podio API used and maintained by the Podio team
https://podio.com
MIT License
66 stars 53 forks source link

Ruby 2.1 & 2.2, Getting: Faraday::SSLError: SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed #28

Closed jeffdeville closed 9 years ago

jeffdeville commented 9 years ago

I can connect by setting up an SSL Connection directly just fine, and the node client is working. I think the problem is that the cert store needs to have set_default_paths() executed. Ruby's openssl support does verification, but does not load the default cert stores. No idea why. But to replicate, all I'm doing is, in irb:

require 'podio'
Podio.setup()
Podio.client.authenticate_with_credentials("MY EMAIL", "MY PASSWORD")

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

I can connect via ssl though, so long as I call set_default_paths on the cert store.

jeffdeville commented 9 years ago

I'll close this, but wanted to provide some more info in case someone else runs into the same problem.

Basically, the GlobalSign certs on the latest OSX Yosemite were the problem. It was not an OpenSSL configuration issue as it so often is. I wound up spinning up a linux box, and replacing my GlobalSign certs with the ones from the box. It was a fun morning.

rafaelcgo commented 8 years ago

@jeffdeville which certs you needed to install? I'm on Mavericks and facing the same problem... Can I find them here? https://support.globalsign.com/customer/en/portal/topics/538410-root-certificates/articles Which ones?

And to add them, should I do it via Keychain Access?