mirror of
https://github.com/dehydrated-io/dehydrated.git
synced 2026-01-11 22:30:44 +01:00
DNS challange seems not working correctly #127
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @Tronic69 on GitHub (Jul 8, 2016).
Hello,
since a few days the dns challenge with inwx-acme (=> https://gist.github.com/jreinert/49aca3b5f3bf2c5d73d8) does not work anymore. It looks like dns entry is not created while using letsencrypt.sh:
If I use deploy_challange directly using the hook script it works:
Any ideas why it does not work anymore and how to debug it?
@gertcuykens commented on GitHub (Jul 10, 2016):
I think the dns server need more time, can you try to put a sleep timeout in
letsencrypt.shjust before it is asking to verify the DNS challange.@lxp commented on GitHub (Jul 10, 2016):
I think hook scripts should ensure that the challenge is fully deployed before they return.
So, I would put the sleep at the end of deploy_challenge in the hook script, if there is no better way to ensure deployment.
@germeier commented on GitHub (Jul 10, 2016):
see: https://community.letsencrypt.org/t/dns-challenge-is-in-staging/8322/20
@txr13 commented on GitHub (Jul 11, 2016):
I note that https://github.com/bennettp123/letsencrypt.sh-email-notify-hook (linked from the wiki section of this project, under "Examples for DNS 01 hooks") implements a check where it sleeps and verifies that DNS has propagated before it returns from deploying the challenge.
Hooks that implement a similar check will probably be okay? I have had the odd instance (several versions ago) where the hook's check would pass, but LE would fail the challenge verification anyway... so in the worst case, maybe you add a couple of sleeps after the hook's check returns, just to try and hedge your bets?
@Tronic69 commented on GitHub (Jul 11, 2016):
@lxp
I agree, the best option would be that the hook-scripts will check DNS entries after deploying them. But that's not implemented, yet.
@gertcuykens
I already had put some sleeps into it, but after that it was only working for the first domain of a multi-domain certificate.
I have now tested a bit more an found a working version with 3 sleeps:
I know, the longer middle sleep (default: 1) makes not really sense, but after increasing it it worked. ^^
Maybe the (first and thrid) sleep time should be configurable in config.
@benediktg commented on GitHub (Jul 11, 2016):
This patch should add the sleep time only if you are using
CHALLENGETYPE="dns-01". You can apply it byConfigurable sleep times should be possible by introducing someting like
SLEEPTIME=10in the config file and callingsleep "${SLEEPTIME}"instead of justsleep 10inletsencrypt.sh.Reverting this patch is possible by
😉
@txr13 commented on GitHub (Jul 11, 2016):
I really feel like this should be handled in the relevant hook script(s), not as a patch to letsencrypt.sh itself...
@tomchiverton commented on GitHub (Jul 14, 2016):
The challenge script should be responsible for deploying the change, waiting till it's applied e.g. by querying DNS back again, and then exiting.
This is what letsencrypt.sh is expecting
@lukas2511 commented on GitHub (Jul 20, 2016):
Yea everything that has to do with rolling out these challenges should be done in the hook script, even the waiting for DNS updates. There are way to many different setups out there to do this cleanly within letsencrypt.sh. Closing this issue.