SSL certificate always the same name


#1

Hello I have a problem with the certificates. I have about 30 domains on my server running. I have always the same domain name inside the certificates. Is this normal?

For example I visit the domain test.com in the certificate is the domain test2.com written not test.com. (test2.com is one of the 30 domains running on the server.

My domain is: -

I ran this command: -

It produced this output: -

My web server is (include version): apache, newest version

The operating system my web server runs on is (include version): centos 7 newest stack

My hosting provider, if applicable, is: -

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


#2

imgo2%20(1)

See this image.


#3

Hi @Jony

do you use one certificate with 30 domain names? So there is no certificate error?

If yes: Yep, this is normal.

A certificate has only one CommonName (CN). But a certificate can have a lot of Subject Alternative Names ( SubjectAlternativeName). If one of these matches the domain name -> the certificate works.

See the screenshot created via https://letsencrypt.org/