Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re: LWP, "certificate verify failed" on known good certificate (paypal.com)

by Corion (Patriarch)
on May 31, 2015 at 06:45 UTC ( [id://1128450]=note: print w/replies, xml ) Need Help??


in reply to LWP, "certificate verify failed" on known good certificate (paypal.com)

Maybe curl and openssl use the PEM files that are installed globally on your system while Mozilla::CA contains different certificates?

I'm not sure how you can easily/conveniently compare the certificate chains between Mozilla::CA and the OS. Maybe you can try and set the global certificate through

IO::Socket::SSL::default_ca( SSL_ca_path => '/etc/ssl/...' );

Replies are listed 'Best First'.
Re^2: LWP, "certificate verify failed" on known good certificate (paypal.com)
by tunafish (Beadle) on May 31, 2015 at 07:46 UTC

    Nailed it!

    I fixed the problem by adding ssl_opts => { verify_hostname => 1, SSL_ca_file => '/path/to/servers/ca-bundle'} to LWP::UserAgent->new().

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1128450]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others surveying the Monastery: (4)
As of 2024-03-29 01:45 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found