the first time the loop runs we don't have the second cert

This commit is contained in:
Florent Daigniere
2022-02-20 12:02:30 +01:00
parent 0816cb9497
commit ab35492589

View File

@@ -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 = ''