Muiltiple Apache Virtual Hosts Listed in certificate

I use Ubuntu 18.04 to set up certificates on multiple different websites on one server using Apache Virtual Hosts. Each site shows the certificates for all other sites. How do I get each site to only list its own certificate instead of listing all DNS sites? Thank you.

Seth Kolodny

Are you using Certbot? You can tell Certbot to issue separate certificates for each of your different sites.

For example, if you wanted example.org to have its own certificate:

certbot --apache -d example.org -d www.example.org

and rinse and repeat for each grouping that you want to have.

I must ask the obvious question...
How did you get all the sites on one cert?
[from there we can see how to split it up - easily]

I ran the command,
$ sudo certbot

and it showed me a list of all hosts. I was able to generate certificates for all hosts at once. Thank you so much for your time.

Seth Kolodny

OK that explains why all hosts are on one cert.

I'm not sure if it will be easy to automate the replacement of the certs.
But it can definitely be done manually.
[the renewals can be automated]

What does running sudo certbot again do?
Do you see a menu of options or does it just try to process a renewal and exit?

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