Hello,
I’m trying to create an HTTPS Wildcard certificate for all my subdomains * .booda.me
My server is hosted on Amazon web services on an “Amazon Linux AMI”.
When I run certbot with this command:
letsencrypt certonly --manual --preferred-challenges dns --register -d booda.me -d * .booda.me
I’m asked to create a acme-challenge “TXT” DNS that contains a string.
The certificates are validated with the confirmation message for “booda.me” and “* .booda.me”.
I also find my certificates by making “certbot certificates”:
When I validate the first DNS “TXT” I wait a few minutes for the propagation. Then I update the 2nd DNS “TXT” for the wildcard by modifying the first DNS, because AWS does not allow me to add a second “_acme-challenge.booda.me”.
But I do not think that could be a problem …
By cons when I go https://booda.me it works but none of my subdomains detect the certificate Let’s encrypt.
I do not understand where it can come from. I made several attempts by choosing “(E) xpand” to update the certificates but it does not work.
that looks like self-signedish (but it actually isn’t) cert of ip-172-31-36-254.eu-west-3.compute.internal
it looks like what AWS use for internal things
that’s wrong cert
it looks like installation problem for me. what kind of webserver are you using? install correct cert with path in your screenshot and reload the webserver
Thank you for your answer, because I saw that I could put two DNS TXT lines on a single _acme-challenge in AWS. So I now have only 1 certificate for booda.me and the wildcard.
I do not see what to add or modify to make my vhost valid, currently I have this:
Do I have to create a second one especially for the wildcard but in what form?
I have this now:
<VirtualHost *: 443>
DocumentRoot “/ var / www / html”
ServerName “booda.me”
ServerAlias "www.booda.me"
SSLCertificateFile /etc/letsencrypt/live/booda.me/fullchain.pem
SSLCertificateKeyFile /etc/letsencrypt/live/booda.me/privkey.pem
Include /etc/letsencrypt/options-ssl-apache.conf
</ VirtualHost>
Actually that's what I was seeing ...
I guess the safest way is to configure automatic http> h redirection in httpd.conf files (not a .htaccess).
I am trying to document myself I do not know the exact command to do it properly.
Also, consider using the Route53 plugin for Certbot. It will automate the creation and removal of the DNS records for your zone in Route53 provided you have the correct IAM policies setup.