You've already forked Mailu
mirror of
https://github.com/Mailu/Mailu.git
synced 2025-11-23 22:04:47 +02:00
In fact in fullchain we want all but the last
This commit is contained in:
@@ -31,8 +31,7 @@ command2 = [
|
|||||||
]
|
]
|
||||||
|
|
||||||
def format_for_nginx(fullchain, output):
|
def format_for_nginx(fullchain, output):
|
||||||
""" nginx expects cert + intermediate
|
""" nginx doesn't need the "compat"
|
||||||
whereas letsencrypt provides ca + intermediate + cert
|
|
||||||
"""
|
"""
|
||||||
certs = []
|
certs = []
|
||||||
with open(fullchain, 'r') as pem:
|
with open(fullchain, 'r') as pem:
|
||||||
@@ -43,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 reversed(certs[1:]):
|
for cert in certs[:-1]:
|
||||||
pem.write(cert)
|
pem.write(cert)
|
||||||
|
|
||||||
# Wait for nginx to start
|
# Wait for nginx to start
|
||||||
|
|||||||
Reference in New Issue
Block a user