For my domain, mamacafejapan.com, I set up a wildcard certificate using the following command on an AWS EC2 instance (Amazon Linux 2 AMI) running an Apache web server (version 2.4.52) and using Certbot version 1.11.0:
sudo certbot -d mamacafejapan.com -d *.mamacafejapan.com --manual --preferred-challenges dns certonly
As part of the process, I added DNS TXT records from my Google Domains control panel to handle the challenges.
The wildcard cert works correctly, but I later discovered that if you use the --manual
flag, then you can't automatically renew the certificate, which makes things inconvenient.
How can I set up a wildcard certificate without using the --manual
flag so that I can auto-renew the certificate? Thank you.