No errors, just questions


#1

Hello,
about 1 year ago I installed https for my domain www.example.com and example.com using ./letsencrypt --auto. I don’t remember if I have created an account with one of my emails during the wizard, how can I check?

However now I want to renew this and create https for another domain, I installed certbot and typed “certbot --apache”. I selected www.example.com example.com and www.another.com Everything is ok but in /etc/apache2/sites-enabled/www.another.com-le-ssl.conf

SSLCertificateFile /etc/letsencrypt/live/www.example.com/fullchain.pem
SSLCertificateKeyFile /etc/letsencrypt/live/www.example.com/privkey.pem

The .pem file of “another” are “example” so… I don’t think it is a clear and correct way. The question are:

Do I have to run “certbot --apache” and select just “www” and “not www”. And after again for others domains? Not all are my domains so I want to keep separate as much as possible.

Thanks


#2

If the domains are separate, I’d suggest creating a separate for each “group” of domain names that are linked.

These groups could be just “www.example.com and example.com” for one certificate and “www.other.com and other.com” for another certificate.


#3

Every time you run certbot, it gets one certificate issued for all the hostnames you’ve selected. So if you’d want to keep the domains separate (there’s obviously no problem with www and non-www hostnames in one certificate), you’ll need to run certbot a few more times, depending on how many certificates you’d want.


#4

Thank you serverco and Osiris


#5

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.