My domain is:
domain.com, www.domain.com and v1.api.domain.com.
I ran this command:
docker compose run --rm --entrypoint " \
certbot certonly --webroot -w /var/www/certbot \
--staging \
--email some@email.com \
-d domain.com -d www.domain.com -d v1.api.domain.com \
--rsa-key-size 4096 \
--agree-tos \
--force-renewal \
" certbot
It produced this output:
[+] Building 0.0s (0/0)
[+] Building 0.0s (0/0)
Saving debug log to /var/log/letsencrypt/letsencrypt.log
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Would you be willing, once your first certificate is successfully issued, to
share your email address with the Electronic Frontier Foundation, a founding
partner of the Let's Encrypt project and the non-profit organization that
develops Certbot? We'd like to send you email about our work encrypting the web,
EFF news, campaigns, and ways to support digital freedom.
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
(Y)es/(N)o: Y
Account registered.
Requesting a certificate for domain.com and 2 more domains
Successfully received certificate.
Certificate is saved at: /etc/letsencrypt/live/domain.com/fullchain.pem
Key is saved at: /etc/letsencrypt/live/domain.com/privkey.pem
This certificate expires on 2023-09-23.
These files will be updated when the certificate renews.
NEXT STEPS:
- The certificate will need to be renewed before it expires. Certbot can automatically renew the certificate in the background, but you may need to take steps to enable that functionality. See https://certbot.org/renewal-setup for instructions.
We were unable to subscribe you the EFF mailing list because your e-mail address appears to be invalid. You can try again later by visiting https://act.eff.org.
My web server is (include version):
nginx:alpine.
The operating system my web server runs on is (include version):
Ubuntu 22.04.2 LTS (jammy).
My hosting provider, if applicable, is:
Linode.
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 2.6.0
Hello everyone, in advance I want to apologize if my question is dumb.
So, it turns out that I'm trying to generate the certificate for these three domains, as I showed in the example, however, the certbot container, in the end, just generates:
Certificate is saved at: /etc/letsencrypt/live/domain.com/fullchain.pem
Key is saved at: /etc/letsencrypt/live/domain.com/privkey.pem
Which refers only to the first domain I informed, inside the /etc/letsencrypt/live
directory there is only the domain.com
folder.
Is it something I'm doing wrong? The certificate would need to be generated for each domain.
NOTE: I tested it without the --staging
flag, but it has the same effect.