Fixing SSL_verify_mode deprecated warning.
Fixing SSL_verify_mode deprecated warning: ******************************************************************* Using the default of SSL_verify_mode of SSL_VERIFY_NONE for client is deprecated! Please set SSL_verify_mode to SSL_VERIFY_PEER together with SSL_ca_file|SSL_ca_path for verification. If you really don't want to verify the certificate and keep the connection open to Man-In-The-Middle attacks please set SSL_verify_mode explicitly to SSL_VERIFY_NONE in your application. *******************************************************************
This commit is contained in:
parent
94dc35984f
commit
70833d3ba5
1 changed files with 2 additions and 0 deletions
2
ddclient
2
ddclient
|
|
@ -2037,6 +2037,8 @@ sub geturl {
|
||||||
Proto => 'tcp',
|
Proto => 'tcp',
|
||||||
MultiHomed => 1,
|
MultiHomed => 1,
|
||||||
Timeout => opt('timeout'),
|
Timeout => opt('timeout'),
|
||||||
|
SSL_verify_mode => 'SSL_VERIFY_PEER',
|
||||||
|
SSL_ca_path => '/etc/pki/tls/certs/',
|
||||||
);
|
);
|
||||||
defined $sd or warning("cannot connect to $peer:$port socket: $@ " . IO::Socket::SSL::errstr());
|
defined $sd or warning("cannot connect to $peer:$port socket: $@ " . IO::Socket::SSL::errstr());
|
||||||
} elsif ($globals{'ipv6'}) {
|
} elsif ($globals{'ipv6'}) {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue