Hi, does anyone know why there is error of openssl when I choose the key size to either 3072 or 4096? There is no issue if I choose 1024/2048. Thank you.
ps -ef |grep openssl
root 17493 1 0 23:45 ? 00:00:00 /usr/bin/perl -we ?? use Fcntl qw(:flock);?? use POSIX qw(setsid nice);?? my $bits = shift || 2048;?? my $outdir = shift || "/tmp";?? sub error { print shift() . "\n"; exit 1; }?? error "Unsupported DH parameter size, must be 1024|2048|3072|4096"???unless $bits =~ /^(1024|2048|3072|4096)$/;?? fork and exit;?? setsid;?? umask 0;?? chdir "/";?? my $lockfile = "/var/lock/ovpn_dhgen_$bits.lock";?? open my $lock_fh, ">$lockfile"???or error "Could not open lockfile $lockfile: $!";?? error "Generation of local $bits bit DH parameters is already in progress"???unless flock $lock_fh, LOCK_EX|LOCK_NB;?? print "Starting generation of local DH parameters ($bits bit) in background\n";?? nice 19;?? open STDIN, "</dev/null";?? open STDOUT, ">/dev/null";?? open STDERR, ">/dev/null";?? system qq(/usr/bin/openssl dhparam -out "${outdir}/dh${bits}.local.pem" $bits)?? 4096 /var/sec/chroot-openvpn/etc/openvpn
root 17494 17493 99 23:45 ? 00:00:52 /usr/bin/openssl dhparam -out /var/sec/chroot-openvpn/etc/openvpn/dh4096.local.pem 4096
root 17600 17289 0 23:46 pts/0 00:00:00 grep openssl
This thread was automatically locked due to age.