From ab35492589ea5f0fead61e90e3b3a95927a608ed Mon Sep 17 00:00:00 2001 From: Florent Daigniere Date: Sun, 20 Feb 2022 12:02:30 +0100 Subject: [PATCH] the first time the loop runs we don't have the second cert --- core/nginx/config.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/core/nginx/config.py b/core/nginx/config.py index bd6967b9..d9cfe6a5 100755 --- a/core/nginx/config.py +++ b/core/nginx/config.py @@ -36,6 +36,8 @@ args["TLS"] = { def format_for_nginx(fullchain, output): """ We may want to strip ISRG Root X1 out """ + if not os.path.exists(fullchain): + return certs = [] with open(fullchain, 'r') as pem: cert = ''