in reply to Re^3: Problem with SSL connection to PayPal
in thread Problem with SSL connection to PayPal

The options look the same. This must be a version issue. Below are my versions of perl and involved modules. The IO modules look out of date.

Perl 5.18.2 LWP::UserAgent 6.05 LWP::Protocol 6.00 IO::Socket 1.36 IO::Socket::SSL 1.966

How do these compare with your working set?

Replies are listed 'Best First'.
Re^5: Problem with SSL connection to PayPal
by noxxi (Pilgrim) on Jun 27, 2016 at 20:59 UTC
    These are about 2 year old versions of the libraries thus it might be that the problems got fixed in the mean time. Another issue might be the version of OpenSSL Perl is linked with. Paypal requires TLS 1.2 which is only available with OpenSSL 1.0.1. You can check the number with
    perl -MNet::SSLeay -e 'printf "0x%x\n",Net::SSLeay::OPENSSL_VERSION_NUMBER()'
    
    If the result is lower than 0x100010000 your OpenSSL version is too old.

      Thanks to both hippo and noxxi for the advice on versions to support TSL1.2. The problem was the openssl version. My server had 0.9.8. I requested a move to a server with 1.0.1 and everything worked the first try. This problem is solved thanks to your help.

Re^5: Problem with SSL connection to PayPal
by hippo (Archbishop) on Jun 27, 2016 at 08:10 UTC

    These are what I'm using. That last entry is potentially significant.

    Perl5.20.3
    LWP::UserAgent6.15
    LWP::Protocol6.15
    IO::Socket1.38
    IO::Socket::SSL2.012
    Mozilla::CA20141217

    If I were you these are the steps I would take:

    • Install version 20141217 of Mozilla::CA and test with that.
    • Enable debugging (via IO::Socket::SSL) and see the detail behind the connection failure.