I use DigitalOcean for hosting and have recently started using doctl for managing domain records which is much faster than the gui. Has anyone intergrated letsencrypt-auto with doctl to create _acme-challenge TXT records? This would save time when adding domains to a certificate or creating a new certificate.
Regards
Paul Rigney
P.S.
I have created a script to clean up those _acme-challenge not very neat but is works and you still need to type y at the prompts
#!/bin/bash
for i in `doctl compute domain list | grep -v "^Domain" | awk '{print $1 }'`; do
doctl compute domain records list $i | grep "_acme-challenge" | sed "s/^/$i /" | awk '{print "doctl compute domain records delete " $1 " " $2 }' >> /tmp/ex.$$.sh
done
chmod +x /tmp/ex.$$.sh
/tmp/ex.$$.sh
rm /tmp/ex.$$.sh```