I am attempting to get ssl working on en.uk-franchises-for-sale.co.uk, fr.uk-franchises-for-sale.co.uk etc, any wildcard domain.
But SSL is only working for the root domain. I have added the text record suggested when running the dns command.
Please fill out the fields below so we can help you better. Note: you must provide your domain name to get help. Domain names for issued certificates are all made public in Certificate Transparency logs (e.g. https://crt.sh/?q=example.com), so withholding your domain name here does not increase secrecy, but only makes it harder for us to provide help.
My domain is: uk-franchises-for-sale.co.uk
I ran this command:
sudo certbot certonly --manual --preferred-challenges=dns --email email@example.com (real one used) --server https://acme-v02.api.letsencrypt.org/directory --agree-tos -d *.uk-franchises-for-sale.co.uk -d uk-franchises-for-sale.co.uk
Previously used just the root domain, expanded to include the wildcard domain with dns challenge as opposed to just certbot --apache -d uk-franchises-for-sale.co.uk
It produced this output:
It contains these names: *.uk-franchises-for-sale.co.uk You requested these names for the new certificate: *.uk-franchises-for-sale.co.uk, uk-franchises-for-sale.co.uk. Do you want to expand and replace this existing certificate with the new certificate? - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - (E)xpand/(C)ancel: E Renewing an existing certificate IMPORTANT NOTES: - Congratulations! Your certificate and chain have been saved at: /etc/letsencrypt/live/uk-franchises-for-sale.co.uk/fullchain.pem Your key file has been saved at: /etc/letsencrypt/live/uk-franchises-for-sale.co.uk/privkey.pem Your cert will expire on 2020-06-23. To obtain a new or tweaked version of this certificate in the future, simply run certbot again. To non-interactively renew *all* of your certificates, run "certbot renew"
My web server is (include version):
Latest LTS Ubuntu
The operating system my web server runs on is (include version): Apache2 on Linux Ubuntu
My hosting provider, if applicable, is: Digitalocean VPS
I can login to a root shell on my machine (yes or no, or I don’t know): Yes
I’m using a control panel to manage my site (no, or provide the name and version of the control panel): No
The version of my client is (e.g. output of
certbot --version or
certbot-auto --version if you’re using Certbot):certbot 0.31.0