SHA256 not required as set by default_md
This commit is contained in:
@@ -596,10 +596,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." -SHA256 -new -newkey rsa:$keysize -keyout '$userkey' -out '$userreq' -config '$cnf_file' -days '$expiry_days' -passout pass:$_passwd 2>&1", $cmd_output, $ret);
|
exec(REQ." -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." -SHA256 -new -newkey rsa:$keysize -keyout '$userkey' -out '$userreq' -config '$cnf_file' -days '$expiry_days' -nodes 2>&1", $cmd_output, $ret);
|
exec(REQ." -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
|
||||||
|
Reference in New Issue
Block a user