mirror of
https://github.com/dehydrated-io/dehydrated.git
synced 2026-07-18 02:51:20 +02:00
Modification for use with CNAMEs
@@ -46,3 +46,17 @@ esac
|
|||||||
|
|
||||||
exit 0
|
exit 0
|
||||||
```
|
```
|
||||||
|
|
||||||
|
If you are using CNAMEs to put all your dynamic updates into a single zone, then you can modify it:
|
||||||
|
|
||||||
|
```
|
||||||
|
ZONE="acme.mydomain.com"
|
||||||
|
...
|
||||||
|
"deploy_challenge")
|
||||||
|
printf "server %s\nzone %s.\nupdate add _acme-challenge.%s.%s. %d in TXT \"%s\"\nsend\n" "${DNSSERVER}" "${ZONE}" "${2}" "${ZONE}" "${TTL}" "${4}" | $NSUPDATE
|
||||||
|
;;
|
||||||
|
"clean_challenge")
|
||||||
|
printf "server %s\nzone %s.\nupdate delete _acme-challenge.%s.%s. %d in TXT \"%s\"\nsend\n" "${DNSSERVER}" "${ZONE}" "${2}" "${ZONE}" "${TTL}" "${4}" | $NSUPDATE
|
||||||
|
```
|
||||||
|
|
||||||
|
You will need to add static CNAMEs for `_acme-challenge.<certname>` pointing at `_acme-challenge.<certname>.acme.mydomain.com` for each certificate you want to issue.
|
||||||
Reference in New Issue
Block a user