-Move to single file for certificate and key for simplicity
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@1256 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
parent
0d7a9ceb23
commit
be24ac6b23
@ -72,8 +72,8 @@ sub submit_request {
|
||||
my $keyfile = shift;
|
||||
my $certfile = shift;
|
||||
my $cafile = shift;
|
||||
unless ($keyfile) { $keyfile = $ENV{HOME}."/.xcat/client-key.pem"; }
|
||||
unless ($certfile) { $certfile = $ENV{HOME}."/.xcat/client-cert.pem"; }
|
||||
unless ($keyfile) { $keyfile = $ENV{HOME}."/.xcat/client-cred.pem"; }
|
||||
unless ($certfile) { $certfile = $ENV{HOME}."/.xcat/client-cred.pem"; }
|
||||
unless ($cafile) { $cafile = $ENV{HOME}."/.xcat/ca.pem"; }
|
||||
$xCAT::Client::EXITCODE = 0; # clear out exit code before invoking the plugin
|
||||
|
||||
|
@ -479,8 +479,8 @@ until ($quit) {
|
||||
eval {
|
||||
alarm(10);
|
||||
$connection = IO::Socket::SSL->start_SSL($cnnection,
|
||||
SSL_key_file=>$xcatdir."/cert/server-key.pem",
|
||||
SSL_cert_file=>$xcatdir."/cert/server-cert.pem",
|
||||
SSL_key_file=>$xcatdir."/cert/server-cred.pem",
|
||||
SSL_cert_file=>$xcatdir."/cert/server-cred.pem",
|
||||
SSL_ca_file=>$xcatdir."/cert/ca.pem",
|
||||
SSL_server=>1,
|
||||
SSL_verify_mode=> 1
|
||||
|
Loading…
Reference in New Issue
Block a user