]> git.ipfire.org Git - people/pmueller/ipfire-2.x.git/commit
vpnmain.cgi: set SubjectAlternativeName default during root certificate generation
authorPeter Müller <peter.mueller@ipfire.org>
Tue, 7 Jan 2020 21:47:00 +0000 (21:47 +0000)
committerArne Fitzenreiter <arne_f@ipfire.org>
Sat, 11 Jan 2020 14:15:28 +0000 (14:15 +0000)
commit993724b4dd9837af033880d7816511818f030d59
treef7cfd001e66802204084e8f43a81782a28a66383
parentfde4f231a08239cd4a1eeeb0522a781ea0371efa
vpnmain.cgi: set SubjectAlternativeName default during root certificate generation

Some IPsec implementations such as OpenIKED require SubjectAlternativeName
data on certificates and refuse to establish connections otherwise.

The StrongSwan project also recommends it (see:
https://wiki.strongswan.org/projects/strongswan/wiki/SimpleCA) although
it is currently not enforced by their IPsec software.

For convenience purposes and to raise awareness, this patch adds a default
SubjectAlternativeName based on the machines hostname or IP address. Existing
certificates remain unchanged for obvious reasons.

The third version of this patch fixes a duplicate DNS query reported by Michael.

Fixes #11594

Signed-off-by: Peter Müller <peter.mueller@ipfire.org>
Cc: Michael Tremer <michael.tremer@ipfire.org>
Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
html/cgi-bin/vpnmain.cgi