I have successfully installed letsencrypt certificate for my apache webserver on debian: it was super easy and works great!
The only problem is that I get a warning message in the error.log:
www.mattia.xxx:443:0 server certificate does NOT include an ID which matches the server name
I have tried
$ sudo openssl x509 -in /etc/letsencrypt/live/www.mattia.xxx/cert.pem -noout -subject
and it gives me:
My /etc/apache2/apache2.conf at line 2 has:
my sites-enabled/default-ssl.conf which has (among other things):
<IfModule mod_ssl.c> <VirtualHost *:443> ServerName www.mattia.xxx SSLCertificateFile /etc/letsencrypt/live/www.mattia.xxx/cert.pem SSLCertificateKeyFile /etc/letsencrypt/live/www.mattia.xxx/privkey.pem SSLCertificateChainFile /etc/letsencrypt/live/www.mattia.xxx/fullchain.pem ServerAlias www.mattia.xxx ServerAlias mattia.xxx </VirtualHost> </IfModule>
I have noticed that the server name in the error log is taken from /etc/apache2/apache2.conf (I have tried changing www.mattia.xxx to mattia.xxx in there and the error log changed accordingly, while changing the ServerName variable in default-ssl.conf had no effect there).
I cannot understand what the problem is. Any help would be appreciated.