keep key during certificate renewal

master
lub 4 years ago
parent e600f20762
commit 5b9c2e5336

@ -36,6 +36,12 @@ command2 = [
"--post-hook", "/config.py"
]
# if dane is used we recommend pinning to the key, so it should not change
# ('true','yes') to be consistent with the logic in configuration.py
if os.environ.get("TLS_REUSE_KEY", "false").lower() in ('true','yes'):
command.append("--reuse-key")
command2.append("--reuse-key")
# Wait for nginx to start
time.sleep(5)

Loading…
Cancel
Save