1

My rails app (Rails 4.0, Ruby 2.0.) has a rake task that when run remotely on Heroku results in the error:

SSL_connect returned=1 errno=0 state=SSLv2/v3 read server hello A: (null)

The offending code:

doc = Nokogiri::HTML(open(item.link))

I tried adding:

doc = Nokogiri::HTML(open(item.link, ssl_verify_mode: OpenSSL::SSL::VERIFY_NONE))

This doesn't cange anything. Any suggestions?

Kenny Meyer
  • 7,849
  • 6
  • 45
  • 66
  • Take a look at this question: http://stackoverflow.com/questions/9175151/connecting-using-https-to-a-server-with-a-certificate-signed-by-a-ca-i-created – Kenny Meyer Nov 24 '13 at 01:17
  • Thanks! That did the trick, spesifically adding: OpenSSL::SSL::SSLContext::DEFAULT_PARAMS[:ssl_version] = 'SSLv3' – bulldog_in_the_dream Nov 24 '13 at 15:30

0 Answers0