Update SHA256

This commit is contained in:
John Crisp
2020-02-27 18:55:53 +01:00
parent a6928e3771
commit 0b3dd93e42

View File

@@ -590,10 +590,10 @@ function CA_create_cert($cert_type='email',$country,$province,$locality,$organiz
$cmd_output[] = 'Creating certificate request.'; $cmd_output[] = 'Creating certificate request.';
if (($_passwd) && ($_passwd != "''")) { if (($_passwd) && ($_passwd != "''")) {
exec(REQ." -new -newkey rsa:$keysize -keyout '$userkey' -out '$userreq' -config '$cnf_file' -days '$expiry_days' -passout pass:$_passwd 2>&1", $cmd_output, $ret); exec(REQ." -SHA256 -new -newkey rsa:$keysize -keyout '$userkey' -out '$userreq' -config '$cnf_file' -days '$expiry_days' -passout pass:$_passwd 2>&1", $cmd_output, $ret);
} }
else { else {
exec(REQ." -new -newkey rsa:$keysize -keyout '$userkey' -out '$userreq' -config '$cnf_file' -days '$expiry_days' -nodes 2>&1", $cmd_output, $ret); exec(REQ." -SHA256 -new -newkey rsa:$keysize -keyout '$userkey' -out '$userreq' -config '$cnf_file' -days '$expiry_days' -nodes 2>&1", $cmd_output, $ret);
} }
# Sign the certificate request and create the certificate # Sign the certificate request and create the certificate