Subject: | Can't connect to www.microsoft.com:443 -- certificate verify failed |
The following test program demonstrates:
AFAICT this is the same issue as discussed in https://github.com/gisle/mozilla-ca/pull/5. I had Mozilla-CA-20141217 installed above.
use IO::Socket::SSL; # I'm using 2.015
my @hosts = qw(
www.apple.com
www.microsoft.com
);
print "1..", int(@hosts), "\n";
my $testnum = 0;
for my $h (@hosts) {
print "# $h\n";
my $s = IO::Socket::SSL->new(
PeerHost => $h,
PeerHost => $h,
PeerPort => 443,
);
unless ($s) {
print "# error=$!, ssl_error=$SSL_ERROR\n";
print "not " unless $s;
}
print "ok ", ++$testnum, "\n";
}
when I run it I see:
when I run it I see:
1..2
# www.apple.com
ok 1
# www.microsoft.com
# error=, ssl_error=SSL connect attempt failed error:14090086:SSL routines:ssl3_get_server_certificate:certificate verify failed
not ok 2
AFAICT this is the same issue as discussed in https://github.com/gisle/mozilla-ca/pull/5. I had Mozilla-CA-20141217 installed above.