Same common name issued to both of my domains


#1

Hello,

I recently started using lets encrypt, and got everything working perfectly on both technerder.com and discordmemebot.com. However today when I checked technerder.com I noticed that the common name for it was “discordmemebot.com” which should only be the common name for the actual “discordmemebot.com” domain. I have both of the sites setup on the same machine and was wondering if I could change the technerder.com common name.


#2

Hi @Technerder

this is normal. One certificate has one Common Name (CN), but can have a lot of Subject Alternative Names (SAN).

You have one certificate with

DNS-Name: api.technerder.com
DNS-Name: code.technerder.com
DNS-Name: discordmemebot.com
DNS-Name: files.technerder.com
DNS-Name: images.technerder.com
DNS-Name: technerder.com
DNS-Name: www.technerder.com

as your SAN-list. discordmemebot.com is your CommonName, so you see this name.

But you can use the certificate with every domain name listed in the SAN.

One vHost can use one certificate. So many different vHosts can use the same certificate instead of creating a lot of certificates with only one domain name.

So it’s not really a problem. Max. 100 domain names per certificate are possible.


#3

So would it be possible for me change my CommonName to “technerder.com”?


#4

If your ACME-client supports that - yes.


#5

But note: if changed, it would change for all sites.
So then all sites would see that one “new” common name.
There can only be one common name.
If you need it to be more than one, you will need more than one cert (one for each).


#6

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