I have a VPS that hosts 2 websites, and I have 2 domains, domain1.com and domain2.com
Server Nginx running on Ubuntu 20.04
I installed certbot and nginx according to their instructions and CA is Letsencrypt.
The problem is that when I visit https://domainX.com and click on the lock icon to view the cert (in Firefox) and select 'More information' I can see the other website's domain names either, like:
Subject Alt Names
DNS Name domain1.com
DNS Name www.domain1.com
DNS Name domain2.com
DNS Name www.domain2.com
- How can I prevent this to be shown? Is this a DNS record problem or is it because certbot suggested these 4 names and I just wanted to get a cert for all 4 during installation?
- Now that the cert has issued, whats the proper way to get a *.domainX certificate for each one and they don't show in one another?
Thank you.