in reply to Re^2: "certificate verify failed" difference between Perl 5.14 and 5.10
in thread "certificate verify failed" difference between Perl 5.14 and 5.10

works for me i.e., it downloads the file but my starting example still does not work.

Whoa, that doesn't make sense.

lwp-download is essentially identical to your program (except the -d option says don't print the content).

I have OpenSSL 1.0.0d

Both work for me :/

  • Comment on Re^3: "certificate verify failed" difference between Perl 5.14 and 5.10

Replies are listed 'Best First'.
Re^4: "certificate verify failed" difference between Perl 5.14 and 5.10
by mje (Curate) on Jun 17, 2011 at 08:20 UTC

    I am running ubuntu and have 0.9.80 but I only have one copy of openssl so both Perl's are using the same one. I was hoping to debug it with HTTPS_DEBUG=1 but that does not output anything in 5.14.0. I guess I'll just have to run it in debug and try and see where it fails.

      I've found what stops it working \o/

      I have PERL_UNICODE=SAL in my environment for Perl 5.14.0. If I unset PERL_UNICODE it works. I've no idea why.

      Correction, I've a good idea why - files being opened in a different mode.

      See OP for real solution.