Simple Certbot DNS manual auth hooks for name.com dns-01 challenge to allow for automatic renewal/creation of wildcard certificates. This was created/adapted from the example at https://eff-certbot.readthedocs.io/en/stable/using.html#hooks.
- Clone the repo.
- Generate an API token to use on name.com
- Fill credentials in both files.
certbot certonly \
--manual
--preferred-challenges=dns \
--manual-auth-hook /path/to/repo/dns-auth.sh \
--manual-cleanup-hook /path/to/repo/dns-cleanup.sh \
-d yourdomain.com \
-d *.yourdomain.com