This tutorial can Auto-Renew wildcard letsencrypt certs for domain on name.com.
- wildcard domain, e.g., *.example.com
- domain hosted by https://www.name.com, we use the API of name.com to add DNS TXT records with a shell script.
Wildcard certificates issued by letsencrypt.org need DNS TXT record to challenge, we can add TXT record manually when you apply the cert. If we want to automate it, we need to write a script that use the API of DNS provider to add TXT record. certbot has provided command argument --manual-auth-hook
to pass the script.
Get your own api token provided by name.com: https://www.name.com/account/settings/api.