]> git.ipfire.org Git - people/ms/ipfire-2.x.git/commit
ovpn: Generate ta.key before dh-parameter
authorErik Kapfer <ummeegge@ipfire.org>
Wed, 18 Sep 2019 05:03:33 +0000 (07:03 +0200)
committerArne Fitzenreiter <arne_f@ipfire.org>
Tue, 8 Oct 2019 18:04:50 +0000 (18:04 +0000)
commitae04d0a3110f6d9d9f9ac96312ca7ce130be0ffd
treee4db349ab769069f0ecfc48d4c49ff41969fec51
parenta4ec2a4e4f324dcf6d6572b0a3a9cf081f5fa49f
ovpn: Generate ta.key before dh-parameter

Fixes: #11964 and #12157
If slow boards or/and boards with low entropy needs too long to generate the DH-parameter, ovpnmain.cgi can get into a
"Script timed out before returning headers" and no further OpenSSl commands will be executed after dhparam is finished.
Since the ta.key are created after the DH-parameter, it won´t be produced in that case.
To prevent this, the DH-parameter will now be generated at the end.

Signed-off-by: Erik Kapfer <ummeegge@ipfire.org>
Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
html/cgi-bin/ovpnmain.cgi