Skip to content

Commit 28503c3

Browse files
committed
fix #164: server cert is not created, if servername is not server.
1 parent 519176f commit 28503c3

File tree

2 files changed

+11
-2
lines changed

2 files changed

+11
-2
lines changed

debian/changelog

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
linuxmuster-base7 (7.3.18-0) lmn73; urgency=low
2+
3+
* fix #164: server cert is not created, if servername is not server.
4+
5+
-- Thomas Schmitt <thomas@linuxmuster.net> Sat, 31 May 2025 15:14:32 +0200
6+
17
linuxmuster-base7 (7.3.17-0) lmn73; urgency=low
28

39
* fix default dns configuration for opnsense (#163).

lib/functions.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
# functions.py
44
#
55
# thomas@linuxmuster.net
6-
# 20250503
6+
# 20250531
77
#
88

99
from subprocess import Popen, PIPE
@@ -521,7 +521,10 @@ def createServerCert(item, days, logfile):
521521
csrfile = environment.SSLDIR + '/' + item + '.csr'
522522
keyfile = environment.SSLDIR + '/' + item + '.key.pem'
523523
certfile = environment.SSLDIR + '/' + item + '.cert.pem'
524-
cnffile = environment.SSLDIR + '/' + item + '_cert_ext.cnf'
524+
if item == 'firewall':
525+
cnffile = environment.SSLDIR + '/' + item + '_cert_ext.cnf'
526+
else:
527+
cnffile = environment.SSLDIR + '/server_cert_ext.cnf'
525528
fullchain = environment.SSLDIR + '/' + item + '.fullchain.pem'
526529
subj = '-subj /CN=' + fqdn + '/'
527530
shadays = ' -sha256 -days ' + days

0 commit comments

Comments
 (0)