]> git.ipfire.org Git - ipfire-2.x.git/commit - html/cgi-bin/ovpnmain.cgi
ovpnmain.cgi: Fixes bug#13404 - prevents certs being saved if common name is already...
authorAdolf Belka <adolf.belka@ipfire.org>
Mon, 26 Feb 2024 15:05:00 +0000 (16:05 +0100)
committerMichael Tremer <michael.tremer@ipfire.org>
Wed, 28 Feb 2024 16:40:53 +0000 (16:40 +0000)
commitf433fdcd90cb406f1095e6c3d2fa6af7cd85efb3
tree01ec9fc04abd07d7375b06b356f97f5107e5f88d
parent033252e043de35cc1da36e0eb5dc198126abbae5
ovpnmain.cgi: Fixes bug#13404 - prevents certs being saved if common name is already used

- This was fixed by moving the code for checking if the common name is already used, to
   the same location as the code for checking if the connection name is already used.
- Tested out on vm testbed and confirmed that the certificates are not created and the
   index.txt not updated if the common name is flagged as already being used. If the
   entry is changed to use a new CN and Save pressed then the certs are saved and the
   index.txt updated. If Cancel is pressed then no certs are saved and index.txt is not
   updated.

Fixes: Bug#13404
Tested-by: Adolf Belka <adolf.belka@ipfire.org>
Signed-off-by: Adolf Belka <adolf.belka@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
html/cgi-bin/ovpnmain.cgi