Different domains with similar names

Hello,
I added a new certificate for a new domain with a name very similar to another on the same server.
The HTTPS doesn’t work.
On the checkers I get “Certificate does not match name wauniversitypro.it”.
I added both www. and without www. to the certificate
Restarted the web server
Double checked the configuration and the files in letsencypt folder
SSLCertificateKeyFile /etc/letsencrypt/live/www.wauniversitypro.it/privkey.pem
SSLCertificateFile /etc/letsencrypt/live/www.wauniversitypro.it/fullchain.pem
All seems right but it doesn’t work.
Thank you for your help

My web server is: Apache/2.4.18 (Ubuntu

The operating system my web server runs on is: Ubuntu 16.04.5 LTS

My hosting provider, if applicable, is: Linode

I can login to a root shell on my machine: yes

I’m using a control panel to manage my site: no

The version of my client is: certbot 0.28.0

Hi @paolocerto

the certificate you use (checked via https://check-your-website.server-daten.de/?q=wauniversitypro.it ):

CN=www.wauniversity.it
	14.01.2019
	14.04.2019
expires in 44 days	bettertest.net, doctorinitalypersonal.com, 
obiettivo-test-ammissione-calabria.it, studio.accademiadeltest.com, 
waucampania.tutorup.it, wauniversity.it, www.bettertest.net, 
www.doctorinitalypersonal.com, www.obiettivo-test-ammissione-calabria.it, 
www.wauniversity.it - 10 entries

there are a lot of domain names, but not wauniversitypro.it.

There is a new certificate

with that domain name. And you have some additional errors (check the result - one loop, server answers with a http status 500).

If you have restartet your server, then your vHost may not be used, because there is another vHost with the same name. Or that vHost isn't enabled.

Hi Juergen,
you are right, the command a2ensite didn’t work so the ssl conf was missing.
Thank you

Regards,
Paolo

2 Likes

Yep, now there is the correct certificate:

CN=www.wauniversitypro.it
	28.02.2019
	29.05.2019
expires in 89 days	wauniversitypro.it, www.wauniversitypro.it - 2 entries

So both connections are secure.

PS: Some files are missing.

/cms/files/filemanager/img/1-tratteggio.png

doesn’t exist. Listet under “Html-Content”.

Yes, it’s working now.
It’s only a test site, not all needs to be perfect.
Thank you again

Regards,
Paolo

2 Likes

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