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\'

";