Certbot manual DNS challenge for DuckDNS
- certbot
- curl
- cron (recommended)
- Clone repository
- Write DuckDNS token to the
token
file - Run certbot in manual mode
Getting a certificate (or several) :
certbot certonly --manual --preferred-challenges dns \
[--non-interactive] [--quiet] [--agree-tos] [--manual-public-ip-logging-ok] \
--manual-auth-hook $(pwd)/cleanup-hook.sh \
--manual-cleanup-hook $(pwd)/certbot-post-hook.sh \
--email [email protected] \
[--domain yourdomain.duckdns.org \]
--domain *.yourdomain.duckdns.org
Example renew cron job:
* * * * 1 /path/to/certbot renew