1
0
mirror of https://github.com/git/git.git synced 2024-11-18 07:03:57 +01:00

send-email: die if CA path doesn't exist

If the CA path isn't found it's most likely to indicate a
misconfiguration, in which case accepting any certificate is unlikely to
be the correct thing to do.

Signed-off-by: John Keeping <john@keeping.me.uk>
Signed-off-by: Jeff King <peff@peff.net>
This commit is contained in:
John Keeping 2015-11-24 23:31:40 +00:00 committed by Jeff King
parent 0c83680e9c
commit c55d65f3c5

@ -1196,8 +1196,7 @@ sub ssl_verify_params {
return (SSL_verify_mode => SSL_VERIFY_PEER(),
SSL_ca_file => $smtp_ssl_cert_path);
} else {
print STDERR "Not using SSL_VERIFY_PEER because the CA path does not exist.\n";
return (SSL_verify_mode => SSL_VERIFY_NONE());
die "CA path \"$smtp_ssl_cert_path\" does not exist";
}
}