From da5e2230d8c6f63ef48e4fce87ba475e3a5c1c82 Mon Sep 17 00:00:00 2001 From: John Crisp Date: Wed, 4 Mar 2020 13:22:41 +0100 Subject: [PATCH] Revert to displaying DH creation --- setup.php-presetup | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/setup.php-presetup b/setup.php-presetup index 5f40688..090ad8c 100644 --- a/setup.php-presetup +++ b/setup.php-presetup @@ -634,14 +634,14 @@ EOS; # print '

Creating 1024 bit Diffie-Hellman parameters used by OpenVPN.
'; print "Saving to $config[private_dir]/dhparam1024.pem.

"; -// $cmd = "openssl dhparam -rand '$config[random]' -out '$config[private_dir]/dhparam1024.pem' 1024"; -// print $cmd.'
'; - // This works but still the error - exec(DH . "-rand '$config[random]' -out '$config[private_dir]/dhparam1024.pem' 1024"); + $cmd = "openssl dhparam -rand '$config[random]' -out '$config[private_dir]/dhparam1024.pem' 1024"; + print $cmd.'
'; + // This works but still errors in logs + // exec(DH . "-rand '$config[random]' -out '$config[private_dir]/dhparam1024.pem' 1024"); // exec(DH . " -out '$config[private_dir]/dhparam1024.pem' 1024"); flush(); - //flush_exec($cmd,100); + flush_exec($cmd,100); print "Please ignore warnings about \"unable to write 'random state\'

";