wildcard *.domain.name not send to hook #411

Closed
opened 2025-12-29 01:24:36 +01:00 by adam · 2 comments
Owner

Originally created by @rnz on GitHub (Jun 5, 2019).

In hook domain.txt:
domain.name *.domain.name > cert_domain.name

but hook run twice domain_challenge with: domain.name

...
case "$1" in
    "deploy_challenge")
        echo "domain: $2"
...
Originally created by @rnz on GitHub (Jun 5, 2019). In hook domain.txt: domain.name *.domain.name > cert_domain.name but hook run twice domain_challenge with: domain.name ``` ... case "$1" in "deploy_challenge") echo "domain: $2" ... ```
adam closed this issue 2025-12-29 01:24:36 +01:00
Author
Owner

@jobe1986 commented on GitHub (Jun 5, 2019):

Wild card domain validation is performed on the domain name WITHOUT the wild card specified. So if you are validating ".domain.name" then the deploy_challenge hook will be instructed to deploy a challenge for "domain.name". In your example this will appear initially as an attempt to deploy a challenge for "domain.name" twice, once for "domain.name" and once for ".domain.name"

@jobe1986 commented on GitHub (Jun 5, 2019): Wild card domain validation is performed on the domain name WITHOUT the wild card specified. So if you are validating "*.domain.name" then the deploy_challenge hook will be instructed to deploy a challenge for "domain.name". In your example this will appear initially as an attempt to deploy a challenge for "domain.name" twice, once for "domain.name" and once for "*.domain.name"
Author
Owner

@lukas2511 commented on GitHub (Aug 15, 2019):

Like @jobe1986 said wildcard domains are validated using the upper level domain. If you need information about what domains your hook is validating you can use the altnames variable.

@lukas2511 commented on GitHub (Aug 15, 2019): Like @jobe1986 said wildcard domains are validated using the upper level domain. If you need information about what domains your hook is validating you can use the altnames variable.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/dehydrated#411