You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Danny Martinez 9c16264c18 oops, cleanup 3 months ago
.gitignore ignore modified ddns cleanup and update files 3 months ago
LICENSE.md added more info, fixed script, added license 5 months ago
README.md added more info, fixed script, added license 5 months ago
ddns_cleanup.template added scripts for validating from a remote server 4 months ago
ddns_update.template added scripts for validating from a remote server 4 months ago
remote-server-authenticator-hook.sh added scripts for validating from a remote server 4 months ago
remote-server-cleanup.sh added scripts for validating from a remote server 4 months ago
same-server-authenticator-hook.sh remove debug bash 4 months ago
same-server-cleanup.sh added conditional for renewing the second-level domain 4 months ago

README.md

Certbot authentication hooks for knot DNS

KnotDNS is my preferred authoritative DNS, so I wrote these quick scripts for certbot authentication.
There are two versions, one for when the DNS is being hosted at the same location as the certbot request, and one for where we have to send a DNS update to the authoritative DNS server, such as when behind an dynamic IP.

To use, simply run the certbot command with the following flags: certbot certonly --manual --preferred-challenges=dns --manual-public-ip-logging-ok --manual-auth-hook /path/to/certbot_knot_hooks/same-server-authenticator-hook.sh --manual-cleanup-hook /path/to/certbot_knot_hooks/same-server-cleanup-hook.sh a.test.example.com