in reply to "certificate verify failed" difference between Perl 5.14 and 5.10

Works for me.

LWP 6.02, 5.14.0, ActiveState, x86, Windows

LWP 6.02, 5.12.1, perlbrew, x86_64, Linux, OpenSSL-0.9.8g

The certificate is by Equifax, and Equifax is in the .pem.

Check that Mozilla::CA::SSL_ca_file() returns the right file and that you have permission to read the file.

  • Comment on Re: "certificate verify failed" difference between Perl 5.14 and 5.10
  • Download Code

Replies are listed 'Best First'.
Re^2: "certificate verify failed" difference between Perl 5.14 and 5.10
by mje (Curate) on Jun 16, 2011 at 17:03 UTC
    $ perl -MMozilla::CA -le 'print Mozilla::CA::SSL_ca_file();' /home/martin/perl5/perlbrew/perls/perl-5.14.0/lib/site_perl/5.14.0/Moz +illa/CA/ca cert.pem $ ls -la /home/martin/perl5/perlbrew/perls/perl-5.14.0/lib/site_perl/5 +.14.0/Mozilla/CA/cacert.pem -r--r--r-- 1 martin root 256791 2011-04-09 16:23 /home/martin/perl5/pe +rlbrew/perls/perl-5.14.0/lib/site_perl/5.14.0/Mozilla/CA/cacert.pem $ perl -MLWP -le 'print $LWP::VERSION;' 6.02

    and I can cat the pem file as the user I am running the script as.

      It could be a problem in the OpenSSL library??? Or maybe the .pem is corrupted??? (Line endings???)