Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re: issue with ssl_opts verify_hostname = 1

by zwon (Monsignor)
on Oct 20, 2012 at 13:46 UTC ( #1000130=note: print w/ replies, xml ) Need Help??


in reply to issue with ssl_opts verify_hostname = 1

Module needs CA certificate to verify site certificate. Perhaps you should install Mozilla::CA. Alternatively you can specify path to CA certificate using SSL_ca_file or SSL_ca_path option. See LWP::Protocol::https.


Comment on Re: issue with ssl_opts verify_hostname = 1
Select or Download Code
Re^2: issue with ssl_opts verify_hostname = 1
by Anonymous Monk on Oct 22, 2012 at 08:10 UTC

    Thanks for the reply.

    Line 9 currently contains "use Mozilla::CA;" and when I call print Mozilla::CA::SSL_ca_file(); it outputs the correct file and the file has correct permissions.

    I tried defining SSL_ca_file before posting to no avail Any other ideas?

      After looking more closely on your example (it works for me with libwww-6.04 btw) I see that you're using libwww-perl-5.805. According to changelog libwww supports Mozilla::CA since version 6.00. Also older version uses Crypt::SSLeay for https support, so my previous link to LWP::Protocol::https was misleading. In order to specify CA certificate for Crypt::SSLeay you should set $ENV{HTTPS_CA_FILE}

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (8)
As of 2014-08-29 20:20 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (288 votes), past polls