http://www.perlmonks.org?node_id=1000285


in reply to Re: issue with ssl_opts verify_hostname = 1
in thread issue with ssl_opts verify_hostname = 1

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?

  • Comment on Re^2: issue with ssl_opts verify_hostname = 1

Replies are listed 'Best First'.
Re^3: issue with ssl_opts verify_hostname = 1
by zwon (Abbot) on Oct 22, 2012 at 14:07 UTC

    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}