Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re^2: "certificate verify failed" difference between Perl 5.14 and 5.10

by mje (Curate)
on Jun 16, 2011 at 17:07 UTC ( [id://909995]=note: print w/replies, xml ) Need Help??


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

perl -d:Modlist -S lwp-request -UusSeEd https://www.easysoft.com

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

martin@betdevel:~$ perl -d:Modlist -S lwp-request -UusSeEd https://www +.easysoft .com GET https://www.easysoft.com User-Agent: lwp-request/6.00 libwww-perl/6.02 200 OK Connection: close Date: Thu, 16 Jun 2011 17:05:08 GMT Accept-Ranges: bytes Server: Apache/2.0.54 (Unix) mod_ssl/2.0.54 OpenSSL/0.9.7d mod_perl/1. +999.21 Per l/v5.8.6 Vary: Accept-Encoding Content-Type: text/html; charset=ISO-8859-1 Client-Date: Thu, 16 Jun 2011 17:04:44 GMT Client-Peer: 172.20.100.10:443 Client-Response-Num: 1 Client-SSL-Cert-Issuer: /C=US/O=Equifax/OU=Equifax Secure Certificate +Authority Client-SSL-Cert-Subject: /serialNumber=Paoxfx3blSdh6U20B0CULwa1WF0wpCX +i/C=GB/O=w ww.easysoft.com/OU=GT68879435/OU=See www.rapidssl.com/resources/cps (c +)10/OU=Dom ain Control Validated - RapidSSL(R)/CN=www.easysoft.com Client-SSL-Cipher: DHE-RSA-AES256-SHA Client-SSL-Socket-Class: IO::Socket::SSL Client-Transfer-Encoding: chunked Content-Style-Type: text/css Link: </style/style.css>; rel="stylesheet"; type="text/css" Link: </favicon.ico>; rel="icon"; type="image/x-icon" Title: ODBC, JDBC and XML Driver Downloads for Windows, Unix, Linux an +d Mac OS X X-Meta-Description: Easysoft ODBC, JDBC and XML drivers let you access + Oracle, S QL Server, Access, InterBase, Sybase, Firebird, RMS, ISAM, Coda and Li +nc from Wi ndows, Unix, Linux, Mac OS X and OpenVMS. X-Meta-Keywords: easysoft,odbc,jdbc,xml,drivers,gateway,bridge,data,da +tabases,fi les,oracle,interbase,sybase,firebird,microsoft,sql server,access,coda, +openvms,rm s,isam,linc X-Meta-Verify-V1: A80XwI68Uh8cIAFxkNSpouY1b8iRx/PeYQcfrBUotks= Use of uninitialized value in split at /home/martin/perl5/perlbrew/per +ls/perl-5. 14.0/lib/site_perl/5.14.0/Devel/Modlist.pm line 49. AutoLoader 5.71 Carp 1.20 Compress::Raw::Zlib 2.033 Config Cwd 3.36 Encode 2.42 Encode::Alias 2.13 Encode::Config 2.05 Encode::Encoding 2.05 Encode::Locale 1.02 Errno 1.13 Exporter 5.64_03 Exporter::Heavy 5.64_03 Fcntl 1.11 File::Basename 2.82 File::Glob 1.12 File::GlobMapper 1.000 File::Spec 3.33 File::Spec::Unix 3.33 Getopt::Long 2.38 HTML::Entities 3.68 HTML::HeadParser 3.66 HTML::Parser 3.68 HTTP::Config 6.00 HTTP::Date 6.00 HTTP::Headers 6.00 HTTP::Message 6.02 HTTP::Request 6.00 HTTP::Response 6.01 HTTP::Status 6.00 I18N::Langinfo 0.08 IO 1.25_04 IO::Compress::Base::Common 2.033 IO::Compress::Gzip::Constants 2.033 IO::Compress::Zlib::Extra 2.033 IO::File 1.15 IO::Handle 1.31 IO::Seekable 1.1 IO::Socket 1.32 IO::Socket::INET 1.31 IO::Socket::SSL 1.44 IO::Socket::UNIX 1.23 IO::Uncompress::Adapter::Inflate 2.033 IO::Uncompress::Base 2.033 IO::Uncompress::Gunzip 2.033 IO::Uncompress::RawInflate 2.033 LWP 6.02 LWP::MemberMixin LWP::Protocol 6.00 LWP::Protocol::http LWP::Protocol::https 6.02 LWP::UserAgent 6.02 List::Util 1.23 Mozilla::CA 20110409 Net::HTTP 6.01 Net::HTTP::Methods 6.00 Net::HTTPS 6.00 Net::SSLeay 1.36 Scalar::Util 1.23 SelectSaver 1.02 Socket 1.94 Storable 2.27 Symbol 1.07 Time::Local 1.2000 URI 1.58 URI::Escape 3.30 URI::Heuristic 4.19 URI::_generic URI::_idna URI::_punycode 0.03 URI::_query URI::_server URI::http URI::https XSLoader 0.13 base 2.16 bytes 1.04 constant 1.21 feature 1.20 integer 1.00 overload 1.13 unicore::Heavy.pl unicore::To::Lower.pl unicore::lib::Nt::De.pl unicore::lib::Perl::SpacePer.pl unicore::lib::Perl::Word.pl utf8 1.09 utf8_heavy.pl vars 1.02 warnings 1.12 warnings::register 1.02

Replies are listed 'Best First'.
Re^3: "certificate verify failed" difference between Perl 5.14 and 5.10
by Anonymous Monk on Jun 17, 2011 at 00:48 UTC
    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 :/

      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.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others browsing the Monastery: (2)
As of 2024-04-25 06:22 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found