mirror of
https://github.com/dehydrated-io/dehydrated.git
synced 2026-01-11 22:30:44 +01:00
DNS-01 failed with multiple -d calls #383
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 @TB1234 on GitHub (Oct 4, 2018).
I call dehydrated from the command line for every domain. If I try to get a wildard certificate this failed with the message "Challenge is invalid".
That's my call:
/opt/dehydrated/dehydrated -c -t dns-01 -o /etc/ssl/reksys -a secp384r1 -d domain.info -d *.domain.info -k /opt/dehydrated/hook.shI have a hook script which sets the token to the nameserver. This works and make no problems if you have only a single domain.
So you can see, I have the domain twice in the call. Once alone and once with wildcard. The result of this call looks like that:
For me, it looks like dehydrated call the hook script twice and in this case the wildcard (*.) is removed. So both challenges have the same name which will result in the problem, that the frist challenge will be deleted if the second one is added. So the first one is invalid.
I called the script with
bash -x:@TB1234 commented on GitHub (Oct 4, 2018):
I fixed the problem by myself. You need multiple TXT records for the domain. Then this worked. So I modified my script not do delete the old tokens until the cleanup is called...