From 42c1fc4ca17e5e653f8b2615ba7f819aef004171 Mon Sep 17 00:00:00 2001 From: John Crisp Date: Tue, 3 Mar 2020 17:35:03 +0100 Subject: [PATCH] No password should be no password on export --- include/openssl_functions.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/include/openssl_functions.php b/include/openssl_functions.php index d5f225f..63bad4f 100644 --- a/include/openssl_functions.php +++ b/include/openssl_functions.php @@ -626,8 +626,9 @@ function CA_create_cert($cert_type='email',$country,$province,$locality,$organiz } else { $cmd_output[] = "infile: $usercert keyfile: $userkey outfile: $userpfx"; - exec(PKCS12." -export -in '$usercert' -inkey '$userkey' -certfile '$config[cacert_pem]' -caname '$config[organization]' -out '$userpfx' -name $friendly_name -nodes -passout pass: 2>&1", $cmd_output, $ret); - } + // Need to check this password thing + //exec(PKCS12." -export -in '$usercert' -inkey '$userkey' -certfile '$config[cacert_pem]' -caname '$config[organization]' -out '$userpfx' -name $friendly_name -nodes -passout pass: 2>&1", $cmd_output, $ret); + } exec(PKCS12." -export -in '$usercert' -inkey '$userkey' -certfile '$config[cacert_pem]' -caname '$config[organization]' -out '$userpfx' -name $friendly_name -nodes 2>&1", $cmd_output, $ret); }; #Unlock the CA database