Ensure that we always have CERT+INTERMEDIARY CA

Let's encrypt may change things up in the future...
master
Florent Daigniere 3 years ago
parent dccd8afd51
commit 109a8aa000

@ -42,7 +42,7 @@ def format_for_nginx(fullchain, output):
certs += [cert] certs += [cert]
cert = '' cert = ''
with open(output, 'w') as pem: 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) pem.write(cert)
# Wait for nginx to start # Wait for nginx to start

Loading…
Cancel
Save