Ssl not for www

Hi all,

my domain http://tdds-gmbh.de have the correct ssl-certificate, but if i browse to https://www.tdds-gmbh.de - no ssl cert, connection not secure.

I ran following:
certbot certonly --apache -d tdds-gmbh.de -d www.tdds-gmbh.de (no change)

ls -lR /etc/letsencrypt/live
output:
/etc/letsencrypt/live/tdds-gmbh.de:
insgesamt 4
lrwxrwxrwx 1 root root 36 29. Jan 09:42 cert.pem -> …/…/archive/tdds-gmbh.de/cert3.pem
lrwxrwxrwx 1 root root 37 29. Jan 09:42 chain.pem -> …/…/archive/tdds-gmbh.de/chain3.pem
lrwxrwxrwx 1 root root 41 29. Jan 09:42 fullchain.pem -> …/…/archive/tdds-gmbh.de/fullchain3.pem
lrwxrwxrwx 1 root root 39 29. Jan 09:42 privkey.pem -> …/…/archive/tdds-gmbh.de/privkey3.pem
-rw-r–r-- 1 root root 692 25. Jan 12:52 README
/etc/letsencrypt/live/www.tdds-gmbh.de:
insgesamt 4
lrwxrwxrwx 1 root root 40 29. Jan 08:55 cert.pem -> …/…/archive/www.tdds-gmbh.de/cert1.pem
lrwxrwxrwx 1 root root 41 29. Jan 08:55 chain.pem -> …/…/archive/www.tdds-gmbh.de/chain1.pem
lrwxrwxrwx 1 root root 45 29. Jan 08:55 fullchain.pem -> …/…/archive/www.tdds-gmbh.de/fullchain1.pem
lrwxrwxrwx 1 root root 43 29. Jan 08:55 privkey.pem -> …/…/archive/www.tdds-gmbh.de/privkey1.pem
-rw-r–r-- 1 root root 692 29. Jan 08:55 README

My domain is: https://tdds-gmbh.de
My web server is (include version): Apache
The operating system my web server runs on is: newest Centos 7
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: 0.29.1

I don’t know what to do now ?_?
Anybody help me please?

Hi @derandyc

you have a correct certificate with two domain names ( https://check-your-website.server-daten.de/?q=tdds-gmbh.de ):

CN=tdds-gmbh.de
	29.01.2019
	29.04.2019
	tdds-gmbh.de, www.tdds-gmbh.de - 2 entries

So the creation of the certificate works.

But your www uses

E=root@anarion, CN=anarion, OU=SomeOrganizationalUnit, O=SomeOrganization, L=SomeCity, S=SomeState, C=--
	14.12.2018
	14.12.2019

So:

  • You have an own vHost with the www-domain name
  • you have no vHost with the www-domain name, so the default vHost is used

Find your vHost of your non-www, add there a

ServerAlias www.tdds-gmbh.de

so that this vHost manages both domain names.

:sweat_smile:

thank you, problem fixed.

1 Like

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