I manually set up a Certbot cert on an EC2 instance so that I could set up a wildcard cert.
Specifically, I used the following command (with the real domain, not
example.com) to set up the manual certificate:
sudo certbot -d example.com -d *.example.com --manual --preferred-challenges dns certonly
I then set the necessary DNS TXT records through Google Domains to handle the challenges. This works fine, and I was able to properly set up the wildcard cert, but the problem is that I cannot figure out how to auto-renew the cert since I set it up manually.
The Certbot docs mention that you have to set up an authentication hook script to auto-renew manual certs, but the docs are pretty complicated, and I don't really understand how to turn what the docs are saying into what I want.
Specifically, I'm referencing this and this:
Could someone that understands this please explain to me how I need to set up an authentication hook script like they mention to allow me to auto-renew the manual cert I've set up? Thank you.