]> git.ipfire.org Git - ipfire-2.x.git/commit
vpnmain.cgi: Fixes bug13737 - increments the serial number to allow cert regen
authorAdolf Belka <adolf.belka@ipfire.org>
Sun, 2 Mar 2025 19:14:30 +0000 (20:14 +0100)
committerMichael Tremer <michael.tremer@ipfire.org>
Wed, 5 Mar 2025 11:19:11 +0000 (11:19 +0000)
commit7d1d7e0bec4c7f991dbbb622ce414e0b91d14d74
tree6a65bed1d98cabe48697f9052d1e780c397bae9b
parent016a95a527cae0828b5f0c49eecd92e947f8a71f
vpnmain.cgi: Fixes bug13737 - increments the serial number to allow cert regen

- When the regeneration is carried out the existing cert, with serial number 01, is
   revoked but when the new cert is created the serial number is still 01 causing error
   messages about the new cert being revoked.
- This patch increments the serial number from 01 to 02 after the initial root/host
   certificate set is created.
- Then when the olf cert is revoked the new one uses serial number 02 but also
   automatically increments it again. So all future regenerations work without problems.
- Tested out on a physical IPFire system.

Fixes: bug13737
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/vpnmain.cgi