Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8614889
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T05:13:59+00:00 2026-06-12T05:13:59+00:00

I have tried everything to solve this issue and can’t get anything to work.

  • 0

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.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-12T05:14:00+00:00Added an answer on June 12, 2026 at 5:14 am

    Could be a problem between SSL v2 and v3.

    Command line diagnostic:

    To diagnose this, try this on your command line:

    $ openssl s_client -connect sandbox.evernote.com:443
    

    The command may fail like this:

    CONNECTED(00000003)
    140386475906720:error:140790E5:SSL routines:SSL23_WRITE:ssl handshake failure
    ...
    

    Now try it with just SSL3:

    openssl s_client -no_tls1 -no_ssl2 -ssl3 -connect  sandbox.evernote.com:443
    

    You want to get a result like this:

    CONNECTED(00000003)
    depth=2 C = US, O = "VeriSign, Inc.", OU = VeriSign Trust Network
    ...
    

    If the first command fails, and the second command succeeds, then the problem is very likely SSL2 vs. SSL3.

    Ruby diagnostic:

    #!/usr/bin/env ruby                                                                                                                                                                                                                                                              
    require 'net/http'
    uri = URI.parse('https://sandbox.evernote.com/')
    req = Net::HTTP::Get.new(uri.path)
    sock = Net::HTTP.new(uri.host, 443)
    sock.use_ssl = true
    
    # Try with default SSL                                                                                                                                                                                                                                                           
    begin
      sock.start do |http|
        response = http.request(req)
      end
      puts "success with SSL default"
    rescue
      puts "failure with SSL default"
    end
    
    # Try with just SSL3                                                                                                                                                                                                                                                             
    sock.ssl_version="SSLv3"
    begin
      sock.start do |http|
        response = http.request(req)
      end
      puts "success with SSLv3"
    rescue
      puts "failure with SSLv3"
    end
    

    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

    require 'net/http'
    module Net
      class HTTP < Protocol
        def HTTP.new(address, port = nil, p_addr = nil, p_port = nil, p_user = nil, p_pass = nil)
          socket = Proxy(p_addr, p_port, p_user, p_pass).newobj(address, port)
          socket.ssl_version = "SSLv3"
          socket
        end
      end
    end
    
    uri = URI.parse('https://sandbox.evernote.com/')
    req = Net::HTTP::Get.new(uri.path)
    sock = Net::HTTP.new(uri.host, 443)
    sock.use_ssl = true
    
    # Try with default SSL                                                                                                                                                                                                                                                           
    begin
      sock.start do |http|
        response = http.request(req)
      end
      puts "success with SSL default"
    rescue
      puts "failure with SSL default"
    end
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Cant get this script to work with my menu really have tried everything any
Having an issue here that I have tried everything I can think of but
This might get a little confusing as I have tried everything to make this
I have been wracking my brain on how to solve this issue for hours
Hello I've tried for 3 weeks to solve this issue and it stumps me.
I know I can solve this by pushing everything into a single entity rather
I know this is a known issue. But I've tried everything I found out
I have tried everything in the book and EVERYTHING I could find on how
I have tried everything, searched the net for two hours or even more and
I'm having trouble making python print out texts properly aligned. I have tried everything

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.