]> git.ipfire.org Git - ipfire-2.x.git/commit
vpnmain.cgi: Fix for 2nd part of bug10595
authorAdolf Belka <adolf.belka@ipfire.org>
Wed, 11 Dec 2024 11:51:43 +0000 (12:51 +0100)
committerArne Fitzenreiter <arne_f@ipfire.org>
Wed, 18 Dec 2024 07:21:43 +0000 (08:21 +0100)
commit7b29acfbb597b89837dcbe1b91ef6ef4352f28a6
tree9f8ec6a1d20000cd19e78a45945cc96de9b1e42d
parent39239d2bc45a91498d243b14e346a804adc4a7f5
vpnmain.cgi: Fix for 2nd part of bug10595

- Bug10595 had two parts in it and was closed after the first part was fixed. The second
   part was still unfixed at that time. I cam across it when checking out an open bug on
   a similar issue with OpenVPN.
- I found the section that checks on the CA Name and modified it to also allow spaces.
- Having modified that then the subroutines getsubjectfromcert and getCNfromcert required
   to have quotation marks put around the parameter that had the CA Name with spaces in it
   otherwise the openssl statement only got a filename with the first portion of the ca
   name until the first space was encountered.
- Tested this change out on my vm and it worked fine. I was able to upload a ca
   certificate into IPSec and use spaces in the CA Name.

Fixes: Bug10595 part 2
Tested-by: Adolf Belka <adolf.belka@ipfire.org>
Signed-off-by: Adolf Belka <adolf.belka@ipfire.org>
Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
html/cgi-bin/vpnmain.cgi [changed mode: 0755->0644]