SSL error for www -version of domain

#1
I have problems with SSL I can't seem to figure out. The www-versioin of my domain returns a SSL error.

In the configuration of my virtual host I've set "Domain Name" to example.com, and added www.example.com as "Domain Alias". The listener is configured to listen to "example.com".

When I open www.example.com the SSL used for the server/listener (server01.example.com) is used instead of www.example.com, and the reason of the SSL invalid error.

Anyone know why this might be, and a solution to the problem?
 
#4
This is resolved.

The www-version of the domain was not included in the LE SSL. Problem was solved by expanding the current SSL to include the www-version of the domain.
 

Cold-Egg

Administrator
#6
Example command
Code:
certbot certonly --webroot -w /var/www/html/ -d example.com -d www.example.com
But it won't fix your 404 issue since it means the file is not found.
 
#7
Please check the documentation (or simply Google it) how to use 'certbot --expand', or simply delete your certificate and make a new one where you make sure to request both the non- and www-version of your domain in the certbot query.
 
Top