From 109a8aa000ec4556240fd56cb1deef1b36130d6f Mon Sep 17 00:00:00 2001 From: Florent Daigniere Date: Tue, 10 Aug 2021 10:55:21 +0200 Subject: [PATCH] Ensure that we always have CERT+INTERMEDIARY CA Let's encrypt may change things up in the future... --- core/nginx/letsencrypt.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/nginx/letsencrypt.py b/core/nginx/letsencrypt.py index 3f8f6067..d6575c11 100755 --- a/core/nginx/letsencrypt.py +++ b/core/nginx/letsencrypt.py @@ -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