1
0
mirror of https://github.com/Mailu/Mailu.git synced 2025-06-04 23:27:34 +02:00

Ensure that we always have CERT+INTERMEDIARY CA

Let's encrypt may change things up in the future...
This commit is contained in:
Florent Daigniere 2021-08-10 10:55:21 +02:00
parent dccd8afd51
commit 109a8aa000

View File

@ -42,7 +42,7 @@ def format_for_nginx(fullchain, output):
certs += [cert]
cert = ''
with open(output, 'w') as pem:
for cert in certs[:-1]:
for cert in certs[:-1] if len(certs)>2 else certs:
pem.write(cert)
# Wait for nginx to start