Hi,
I am trying to do a simple get request over https with the following program.
Which fails with the following error message: Error GETing https://sixxs.net: Can't connect to sixxs.net:443 (certificate verify failed)
However, with the same program, changing the host to https://paypal.com succeeds.
A simple check:
returns
any ideas?
I am trying to do a simple get request over https with the following program.
Code:
#!/usr/local/bin/perl
use warnings;
use strict;
use v5.14;
use WWW::Mechanize;
use Mozilla::CA;
my $url = "https://sixxs.net";
my $mech = WWW::Mechanize->new();
$mech->get($url);
print $mech->status();
Which fails with the following error message: Error GETing https://sixxs.net: Can't connect to sixxs.net:443 (certificate verify failed)
However, with the same program, changing the host to https://paypal.com succeeds.
A simple check:
Code:
perl -MMozilla::CA -e 'print Mozilla::CA::SSL_ca_file()'
Code:
/usr/local/lib/perl5/site_perl/5.14.2/Mozilla/CA/cacert.pem
any ideas?