mirror of
https://github.com/dehydrated-io/dehydrated.git
synced 2026-01-11 22:30:44 +01:00
Processing all deploy_challenge actions before any clean_challenge actions #77
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 @pwaring on GitHub (Mar 20, 2016).
I'm trying to use letsencrypt.sh to generate a single certificate for a number of domains (e.g.
example.org,mail.example.org,imap.example.org).My DNS provider doesn't have an API - instead I have to upload text files with the DNS records and these get pushed out to the nameservers within 20 minutes. I can automate the process of creating the relevant TXT records from the information provided to my hook script (as
$ARGV[4]) but the issue is that I have to wait 20 minutes after adeploy_challengeaction to ensure that the records will definitely be on all the nameservers. This isn't a problem for one domain, but becomes a bit of a pain when I'm trying to generate a certificate for multiple domains.At the moment I'm using the following command:
./letsencrypt.sh --hook ./hook.pl --challenge dns-01which results in
hook.plbeing called as follows:However, I want to process all the
deploy_challengeactions first and then process all theclean_challengeactions, like so:Is this possible?
@welwood08 commented on GitHub (Apr 7, 2016):
You might want to try setting
HOOK_CHAIN="yes"in your config.sh and then have your hooks loop over groups of arguments. Each hook will be called only once with arguments for all domains together rather than 1 call per domain.I've been using this option just fine to deploy all DNS challenges and ensure propagation automatically before proceeding to validate all and then clean all.
@lukas2511 commented on GitHub (Apr 9, 2016):
Yes you should be able to use the
HOOK_CHAINconfig option like @welwood08 suggested.I tried documenting this feature here: https://github.com/lukas2511/letsencrypt.sh/blob/master/docs/hook_chain.md