Taking over a site which has been working fine, but 90 days has come up, so logged in to renew cert which I thought would be easy. I am following these instructions: Renew an SSL certificate on a Bitnami stack in Lightsail | AWS re:Post
Those instructions refer only to using Auto or DNS, but found the site was set up with preferred challenge is http_01 and manual renewal:
sudo certbot certificates
Saving debug log to /var/log/letsencrypt/letsencrypt.log
Found the following certs:
Certificate Name: ctrl.zone
Serial Number: [redacted]
Key Type: ECDSA
Domains: *ctrl.zone .ctrl.zone
Expiry Date: 2024-09-25 00:42:11+00:00 (VALID: 1 day)
Certificate Path: /etc/letsencrypt/live/ctrl.zone/fullchain.pem
Private Key Path: /etc/letsencrypt/live/ctrl.zone/privkey.pem
bitnami@ip-172-26-10-153:~$ sudo cat /etc/letsencrypt/renewal/ctrl.zone.conf
'renew_before_expiry = 30 days
version = 2.1.0
archive_dir = /etc/letsencrypt/archive/ctrl.zone
cert = /etc/letsencrypt/live/ctrl.zone/cert.pem
privkey = /etc/letsencrypt/live/ctrl.zone/privkey.pem
chain = /etc/letsencrypt/live/ctrl.zone/chain.pem
fullchain = /etc/letsencrypt/live/ctrl.zone/fullchain.pem
'Options used in the renewal process
[renewalparams]
account = [redacted]
pref_challs = http-01,
authenticator = manual
server = https://acme-v02.api.letsencrypt.org/directory
key_type = ecdsa
I ran:
sudo certbot certonly --manual --preferred-challenge http-01 -d ctrl.zone -d *.ctrl.zone --force-renewal
It produced this output:
Saving debug log to /var/log/letsencrypt/letsencrypt.log
Plugins selected: Authenticator manual, Installer None
Renewing an existing certificate for ctrl.zone and *.ctrl.zone
Performing the following challenges:
Client with the currently selected authenticator does not support any combination of challenges that will satisfy the CA. You may need to use an authenticator plugin that can do challenges over DNS.
My web server is (include version):
Apache running Wordpress on AWS Lightsail (so Bitnami)
I can login to a root shell on my machine - Yes
I have been doing a bunch of reading, and seen that "Let’s Encrypt currently only supports wildcard certificates through the dns-01
challenge"
Which is fine, but then how is the existing website working with http as seen above?.
And then immediately after reading that, I also see: "apache doesn't support dns validation"
In the end, I just modified the command to remove '-d *.ctrl.zone' and then ran the process so I now have an renewal done on just the ctrl.zone domain.
My question is, how did the person who set this up (~90 days ago) manage to set a wild card with HTTP?
I found the guide a bit unhelp, so happy to donate some words on this scenario as must be pretty common.