I have tried everything to solve this issue and can’t get anything to work. I have uninstalled everything and reinstalled. Still no love. Here is the error I get when trying to connect to the Evernote API.
OpenSSL::SSL::SSLError: SSL_connect SYSCALL returned=5 errno=0 state=SSLv2/v3 read server hello A
I am running:
RVM 1.15.9
Ruby 1.9.3-p194
OpenSSL 1.0.1c
Rails 3.2.8
Homebrew 0.9.3
I have tried literally everything. Followed this guide http://railsapps.github.com/openssl-certificate-verify-failed.html
Trying to use the Evernote API, that is how this all started. cURL works fine pinging a HTTPS address.
Cheers.
Could be a problem between SSL v2 and v3.
Command line diagnostic:
To diagnose this, try this on your command line:
The command may fail like this:
Now try it with just SSL3:
You want to get a result like this:
If the first command fails, and the second command succeeds, then the problem is very likely SSL2 vs. SSL3.
Ruby diagnostic:
How to fix it:
WARNING: this is a hack. Use at your own risk. If anyone finds a better way to do this, please comment here.
Patch HTTP.new to force it to always use SSLv3