mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-09 18:45:54 +02:00
vpnmain.cgi: Do not use a bad source for randomness
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
This commit is contained in:
@@ -2141,7 +2141,7 @@ END
|
||||
&General::log("ipsec", "Creating a cert...");
|
||||
|
||||
if (open(STDIN, "-|")) {
|
||||
my $opt = " req -nodes -rand /proc/interrupts:/proc/net/rt_cache";
|
||||
my $opt = " req -nodes";
|
||||
$opt .= " -newkey rsa:4096";
|
||||
$opt .= " -keyout ${General::swroot}/certs/$cgiparams{'NAME'}key.pem";
|
||||
$opt .= " -out ${General::swroot}/certs/$cgiparams{'NAME'}req.pem";
|
||||
|
||||
Reference in New Issue
Block a user