From 11fc6be55e056a7d653877f9c5b4c40a08eb8bb1 Mon Sep 17 00:00:00 2001 From: John Crisp Date: Sat, 7 Mar 2020 13:04:15 +0100 Subject: [PATCH] Make default sha a configurabloe option and set to 512 --- include/openssl_functions.php | 2 +- setup.php-presetup | 13 ++++++++----- 2 files changed, 9 insertions(+), 6 deletions(-) diff --git a/include/openssl_functions.php b/include/openssl_functions.php index ce7829a..d97be82 100644 --- a/include/openssl_functions.php +++ b/include/openssl_functions.php @@ -62,7 +62,7 @@ crl_extentions = crl_ext default_days = 365 default_crl_days = 30 preserve = no -default_md = sha256 +default_md = $config[default_md] [ req ] default_bits = $keysize diff --git a/setup.php-presetup b/setup.php-presetup index e422dd6..65d328d 100644 --- a/setup.php-presetup +++ b/setup.php-presetup @@ -201,7 +201,7 @@ case 'write': print 'Writing configuration files...
'; flush(); - $config_txt = <<