tc/paypal_adaptive — Issue #43: Getting OpenSSL::SSL::SSLError on staging machine with existing SSL protection
Author: biot023
Created: 2012-02-15 17:55:42+00:00
State: open

Hi -- we have submitting a payment working on a development machine (well, taking us to the sandbox to login, which is as far as we've tested). This development machine is running with HTTPS.
However, when we try to run the same code on a staging server that has a valid SSL certificate in place, and so uses HTTPS for the actions to do with paying for orders, we get the following error:

OpenSSL::SSL::SSLError (SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed):
/usr/lib/ruby/1.8/net/http.rb:586:in `connect'
/usr/lib/ruby/1.8/net/http.rb:586:in `connect'
/usr/lib/ruby/1.8/net/http.rb:553:in `do_start'
/usr/lib/ruby/1.8/net/http.rb:542:in `start'
/usr/lib/ruby/1.8/net/http.rb:1035:in `request'
/usr/lib/ruby/1.8/net/http.rb:845:in `post'
/var/lib/gems/1.8/gems/paypal_adaptive-0.2.7/lib/paypal_adaptive/request.rb:88:in `post'
/var/lib/gems/1.8/gems/paypal_adaptive-0.2.7/lib/paypal_adaptive/request.rb:75:in `wrap_post'
/var/lib/gems/1.8/gems/paypal_adaptive-0.2.7/lib/paypal_adaptive/request.rb:29:in `pay'
/app/controllers/orders_controller.rb:63:in `pay'

Could you possibly advise us as to where we should look, next?
We have the correct values filled in in our paypal_adaptive.yml config file, and have downloaded the key from paypal.
My guess is that the SSL certificates are clashing, or that maybe I need to register our certificate with paypal somewhere?
Sorry to bug you with this, by the way, we've been hacking it together all day (getting it to work with a Rails 2.1 app), and could really use a little guidance, if possible.
Thanks,
Doug.