recurly/recurly-client-ruby — Issue #39: OpenSSL::SSL::SSLError: SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed
Author: mendable
Created: 2011-11-01 23:24:54+00:00
State: open

Hi,

Running Ruby 1.9.2-p290.

I'm getting this error:
OpenSSL::SSL::SSLError: SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed

Raised from:
/usr/lib/ruby/1.9.1/net/http.rb, line 678

The issue is that the net http instance is not configured with the path to my local SSL certificates, hence it is failing to verify the peer SSL certificate.

The problem stems from lib/recurly/api/net_http.rb which does not permit additional options to be set on the Net::HTTP object instance prior to the http.start method call.

For an example and further details of this issue, also see:
http://martinottenwaelter.fr/2010/12/ruby19-and-the-ssl-error/
https://github.com/technoweenie/faraday/pull/51 (totally different lib, but issue is the same)

Please can some kind of interface be added to the Recurly client that will permit correct setup of the net http object prior to http.start?

Many thanks,

Jason