Skip to content

Commit 57852d4

Browse files
committed
More complete information when not Certificate Authorities is available
1 parent 2d92b7b commit 57852d4

1 file changed

Lines changed: 10 additions & 1 deletion

File tree

lib/LWP/Protocol/https.pm

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,16 @@ sub _extra_sock_opts
2626
};
2727
if ($@) {
2828
if ($@ =! /^Can't locate Mozilla\/CA\.pm/) {
29-
$@ = "Can't verify SSL peers without knowning which Certificate Authorities to trust";
29+
$@ = <<'EOT';
30+
Can't verify SSL peers without knowning which Certificate Authorities to trust
31+
32+
This problem can be fixed by either setting the PERL_LWP_SSL_CA_FILE
33+
envirionment variable or by installing the Mozilla::CA module.
34+
35+
To disable verification of SSL peers set the PERL_LWP_SSL_VERIFY_HOSTNAME
36+
envirionment variable to 0. If you do this you can't be sure that you
37+
communcate with the expected peer.
38+
EOT
3039
}
3140
die $@;
3241
}

0 commit comments

Comments
 (0)