Revert to displaying DH creation
This commit is contained in:
@@ -634,14 +634,14 @@ EOS;
|
||||
#
|
||||
print '<p><strong>Creating 1024 bit Diffie-Hellman parameters used by OpenVPN.<br>';
|
||||
print "Saving to $config[private_dir]/dhparam1024.pem.</strong><br>";
|
||||
// $cmd = "openssl dhparam -rand '$config[random]' -out '$config[private_dir]/dhparam1024.pem' 1024";
|
||||
// print $cmd.'<br>';
|
||||
// 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.'<br>';
|
||||
// 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\' <br><br>";
|
||||
|
||||
|
Reference in New Issue
Block a user