DNS verification hook for acmetool using cloudflare API.
dns.hook to your server. Install dependencies: python 3, requests. You also need the
dig program. On debian based systems it is available in the
Allow only yourself to read/write/execute it:
$ chmod 700 dns.hook
Edit dns.hook, set EMAIL and KEY.
$ ./dns.hook test [sub.yourdomain.tld]
The script will try to create a TXT record
_acme-challenge.[sub.yourdomain.tld], verify it, and delete it.
If it works, copy/move to acmetool hooks dir (e.g.
$ sudo mv dns.hook /usr/lib/acme/hooks/