Skip to content

Commit 43ed382

Browse files
committed
Merge branch 'jk/send-email-ca-path'
Use a safer behavior when we hit errors verifying remote certificates. * jk/send-email-ca-path: send-email: die if CA path doesn't exist
2 parents e2187fe + c55d65f commit 43ed382

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)