Simple way to automate ACME DNS challenges.
This authentication hook automatically registers acme-dns accounts and prompts the user to manually add the CNAME records to their main DNS zone on initial run.
Subsequent automatic renewals by Certbot cron job / systemd timer run in the background non-interactively.
Customize code:
wget -O /etc/letsencrypt/cname-auth.py https://acme.cname.si/cname-auth.py
chmod 700 /etc/letsencrypt/cname-auth.py
certbot certonly --manual --manual-auth-hook /etc/letsencrypt/cname-auth.py --preferred-challenges dns --debug-challenges --manual-public-ip-logging-ok -d your.domain.tld
Crontab and forget.