Temporarily disable cert verification for STARTTLS too.

This commit is contained in:
Ramon Novoa 2019-09-20 10:36:56 +02:00
parent 274b6b9327
commit 0bdf967259
1 changed files with 1 additions and 1 deletions

View File

@ -434,7 +434,7 @@ sub sendmail {
socket_write("STARTTLS$CRLF") || return fail("send STARTTLS error");
socket_read()
|| return fail('STARTTLS error');
IO::Socket::SSL->start_SSL($S, SSL_hostname => $server)
IO::Socket::SSL->start_SSL($S, SSL_hostname => $server, SSL_verify_mode => IO::Socket::SSL::SSL_VERIFY_NONE())
|| return fail("start_SSL failed");
# The client SHOULD send an EHLO command as the