- Certbot
- Python
- Domain and Nameserver hosted on Hetzner
- Hetzner DNS Api Token
Move config.ini.example to config.ini.
Set Api token.
sudo certbot certonly --manual --preferred-challenges dns --manual-auth-hook ./hetznerdnshook.py -d domain.de -d *.domain.de
This line can also be used for automated calls like inside cron scripts.
sudo certbot certonly --manual --preferred-challenges dns --manual-auth-hook ./hetznerdnshook.py -d domain.de -d *.domain.de --dry-run --agree-tos --manual-public-ip-logging-ok
In order to delete old ACME TXT entries, you can use following command
python3 hetznerdnshook.py --delete domain.de
Keep in mind to replace domain.de with your own domain!