tunafish has asked for the wisdom of the Perl Monks concerning the following question:
Not 100% sure this is a Perl issue, but it seems to be. I have an IPN script that connects with PayPal to verify transactions. It was working fine until yesterday, when I installed LWP::Protocol::https. Since then, it's been failing with the error:
Can't connect to www.paypal.com:443 (certificate verify failed) LWP::Protocol::https::Socket: SSL connect attempt failed error:1409008 +6:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed +at /usr/local/share/perl5/LWP/Protocol/http.pm line 47.
Running GET https://www.paypal.com from bash (which uses LWP) yields the same error message. OTOH, running GET https://www.gmail.com is successful.
Running openssl s_client -host paypal.com -port 443 returns (among other things) Verify return code: 0 (ok).
curl "https://www.paypal.com/cgi-bin/webscr?cmd=_notify-validate" successfully receives a response from PayPal. So it does seem to be Perl-specific.
Module versions:
LWP 6.13 LWP::Protocol::https 6.06 IO::Socket::SSL 2.015 Mozilla::CA 20141217 (note I've tried the script both using Mozilla::C +A and without it... results have been the same)
Please let me know if there are other relevant modules. Perl version is 5.10.1. Server OS is RHEL 6.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: LWP, "certificate verify failed" on known good certificate (paypal.com)
by Corion (Patriarch) on May 31, 2015 at 06:45 UTC | |
by tunafish (Beadle) on May 31, 2015 at 07:46 UTC | |
|
Re: LWP, "certificate verify failed" on known good certificate (paypal.com)
by noxxi (Pilgrim) on Jun 01, 2015 at 06:59 UTC | |
|
Re: LWP, "certificate verify failed" on known good certificate
by parv (Parson) on Jun 09, 2015 at 00:14 UTC | |
|
Re: LWP, "certificate verify failed" on known good certificate (paypal.com)
by ikegami (Patriarch) on Jun 01, 2015 at 17:45 UTC |