Permalink
Browse files

More complete information when not Certificate Authorities is available

  • Loading branch information...
1 parent 2d92b7b commit 57852d4133c43f71ebc63e8fa5dd66af0f7aec54 @gisle gisle committed Feb 13, 2011
Showing with 10 additions and 1 deletion.
  1. +10 −1 lib/LWP/Protocol/https.pm
View
@@ -26,7 +26,16 @@ sub _extra_sock_opts
};
if ($@) {
if ($@ =! /^Can't locate Mozilla\/CA\.pm/) {
- $@ = "Can't verify SSL peers without knowning which Certificate Authorities to trust";
+ $@ = <<'EOT';
+Can't verify SSL peers without knowning which Certificate Authorities to trust
+
+This problem can be fixed by either setting the PERL_LWP_SSL_CA_FILE
+envirionment variable or by installing the Mozilla::CA module.
+
+To disable verification of SSL peers set the PERL_LWP_SSL_VERIFY_HOSTNAME
+envirionment variable to 0. If you do this you can't be sure that you
+communcate with the expected peer.
+EOT
}
die $@;
}

0 comments on commit 57852d4

Please sign in to comment.