From 274b6b9327ec4daf692348d62c861b5cbc7f9bcd Mon Sep 17 00:00:00 2001 From: Ramon Novoa Date: Thu, 19 Sep 2019 15:27:46 +0200 Subject: [PATCH] Disable certificate verification until it can be turned on/off from the console. --- pandora_server/lib/PandoraFMS/Sendmail.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pandora_server/lib/PandoraFMS/Sendmail.pm b/pandora_server/lib/PandoraFMS/Sendmail.pm index b0c4cf4955..21b56d1b86 100644 --- a/pandora_server/lib/PandoraFMS/Sendmail.pm +++ b/pandora_server/lib/PandoraFMS/Sendmail.pm @@ -379,7 +379,7 @@ sub sendmail { $S = new IO::Socket::INET(PeerPort => $port, PeerAddr => $server, Proto => 'tcp'); } else { - $S = new IO::Socket::SSL(PeerPort => $port, PeerAddr => $server, Proto => 'tcp', SSL_verify => 0, Domain => AF_INET); + $S = new IO::Socket::SSL(PeerPort => $port, PeerAddr => $server, Proto => 'tcp', SSL_verify_mode => IO::Socket::SSL::SSL_VERIFY_NONE(), Domain => AF_INET); } if ( $S ) { print STDERR "- connected to $server\n" if $mailcfg{'debug'} > 9;