Skip to content

Commit c55d65f

Browse files
johnkeepingpeff
authored andcommitted
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 <[email protected]> Signed-off-by: Jeff King <[email protected]>
1 parent 0c83680 commit c55d65f

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

git-send-email.perl

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1196,8 +1196,7 @@ sub ssl_verify_params {
11961196
return (SSL_verify_mode => SSL_VERIFY_PEER(),
11971197
SSL_ca_file => $smtp_ssl_cert_path);
11981198
} else {
1199-
print STDERR "Not using SSL_VERIFY_PEER because the CA path does not exist.\n";
1200-
return (SSL_verify_mode => SSL_VERIFY_NONE());
1199+
die "CA path \"$smtp_ssl_cert_path\" does not exist";
12011200
}
12021201
}
12031202

0 commit comments

Comments
 (0)