2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-08-21 18:50:28 +00:00

Have ppping and psh verify peer

psh and ppping failed to verify the server certificate
This commit is contained in:
jjohnson2
2015-03-24 13:39:19 -04:00
parent 5068a8b99d
commit 1bce6d44c8
2 changed files with 2 additions and 2 deletions

View File

@@ -89,7 +89,7 @@ my $client = IO::Socket::SSL->new(
SSL_ca_file => $homedir."/.xcat/ca.pem",
SSL_use_cert => 1,
%sslargs,
#SSL_verify_mode => 1,
SSL_verify_mode => SSL_VERIFY_PEER,
);
die "Connection failure: $!\n" unless ($client);
my %cmdref = (command => 'noderange', noderange => $noderange);

View File

@@ -61,7 +61,7 @@ else {
SSL_cert_file=>$homedir."/.xcat/client-cred.pem",
SSL_ca_file => $homedir."/.xcat/ca.pem",
SSL_use_cert => 1,
#SSL_verify_mode => 1,
SSL_verify_mode => SSL_VERIFY_MODE,
);
die "Connection failure: $!\n" unless ($client);
my %cmdref = (command => 'noderange', noderange => $noderange);