Commit 631c44d5 authored by Adrien Dorsaz's avatar Adrien Dorsaz

acme-dns-tiny: add a wait delay just before real check server to be sure that…

acme-dns-tiny: add a wait delay just before real check server to be sure that ACME DNS entries are updated
parent fac4bee2
Pipeline #181 failed with stage
in 4 minutes and 6 seconds
......@@ -208,7 +208,8 @@ def get_crt(config, log=LOGGER):
number_check_fail = number_check_fail + 1
time.sleep(2)
log.info("Ask ACME server to validate thise challenge.")
log.info("Waiting for {0} seconds before asking ACME server to validate challenge.".format(max(5, config["acmednstiny"].getint("CheckChallengeDelay"))))
max(5, time.sleep(config["acmednstiny"].getint("CheckChallengeDelay")))
code, result, headers = _send_signed_request(challenge["url"], {"keyAuthorization": keyauthorization})
if code != 200:
raise ValueError("Error triggering challenge: {0} {1}".format(code, result))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment