I already have rpiweather.net setup with SSL and now want to add a few subdomains, e.g. sandbox.rpiweather.net. I have the CNAME for sandbox pointing to rpiweather.net and created the necessary folders in /var/www for the content, which I can reach the site using http.
I tried to add the sandbox domain using certbot --expand but it errored (see below). How do you properly add a subdomain?
Does each subdomain get its own certificate, or is it the same certificate as rpiweather.net?
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. crt.sh | 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:rpiweather.net
I ran this command: certbot --expand -d rpiweather.net,www.rpiweather.net,sandbox.rpiweather.net,www.sandbox.rpiweather.net
It produced this output: Saving debug log to /var/log/letsencrypt/letsencrypt.log
Certbot doesn't know how to automatically configure the web server on this system. However, it can still get a certificate for you. Please run "certbot ce rtonly" to do so. You'll need to manually configure your web server to use the resulting certificate.
My web server is (include version): nginx/1.18.0
The operating system my web server runs on is (include version):
My hosting provider, if applicable, is: self hosting, registrar and DDNS by dynu.com
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):
The version of my client is (e.g. output of certbot --version
or certbot-auto --version
if you're using Certbot): 1.12.0