After moving the certificates in a personnal directory on /etc/apache2, configuring apache, stop and start service apache2, the service apache is down…
Message in errorlog :
[Wed Mar 15 21:20:06.959913 2017] [ssl:emerg] [pid 16676] AH02562: Failed to configure certificate 192.168.1.141:443:0 (with chain), check /etc/apache2/.certs/0000_csr-certbot.pem
[Wed Mar 15 21:20:06.960012 2017] [ssl:emerg] [pid 16676] SSL Library Error: error:0906D06C:PEM routines:PEM_read_bio:no start line (Expecting: TRUSTED CERTIFICATE) -- Bad file contents or format - or even just a forgotten SSLCertificateKeyFile?
[Wed Mar 15 21:20:06.960113 2017] [ssl:emerg] [pid 16676] SSL Library Error: error:140DC009:SSL routines:SSL_CTX_use_certificate_chain_file:PEM lib
AH00016: Configuration Failed
[Wed Mar 15 21:22:38.396505 2017] [ssl:info] [pid 16788] AH01914: Configuring server 192.168.1.141:443 for SSL protocol
[Wed Mar 15 21:22:38.398182 2017] [ssl:debug] [pid 16788] ssl_engine_init.c(390): AH01893: Configuring TLS extension handling
[Wed Mar 15 21:22:38.398472 2017] [ssl:emerg] [pid 16788] AH02562: Failed to configure certificate 192.168.1.141:443:0 (with chain), check /etc/apache2/.certs/0000_csr-certbot.pem
[Wed Mar 15 21:22:38.398570 2017] [ssl:emerg] [pid 16788] SSL Library Error: error:0906D06C:PEM routines:PEM_read_bio:no start line (Expecting: TRUSTED CERTIFICATE) -- Bad file contents or format - or even just a forgotten SSLCertificateKeyFile?
[Wed Mar 15 21:22:38.398673 2017] [ssl:emerg] [pid 16788] SSL Library Error: error:140DC009:SSL routines:SSL_CTX_use_certificate_chain_file:PEM lib
AH00016: Configuration Failed
OK. I have found the errors et correct it (the file to place on configuration file default-ssl).
No error message on errorlog when I restart Apache service…
But when I try ton reach my site using HTTPS, on my android phone with Google Chrome, this is what I see :
Your connexion is not private…
NET::ERR_CERT_COMMON_NAME_INVALID
In errorlog, I can see that : [Wed Mar 15 21:51:21.487842 2017] [ssl:info] [pid 17841] (70014)End of file found: [client 80.215.227.83:30517] AH01991: SSL input filter read failed.
And I have this message when I do service apache 2 status : The SSLCertificateChainFile directive is deprecated
I have :
SSLCertificateFile /etc/letsencrypt/live/mydomain.fr/cert.pem
SSLCertificateKeyFile /etc/letsencrypt/live/mydomain.fr/privkey.pem
SSLCertificateChainFile /etc/letsencrypt/live/mydomain.fr/fullchain.pem
That works OK without the www. part. The only trouble is that the certificate covers the base domain without the www. version, which is not really a configuration problem but just a problem about the names for which the certificate was requested.
So, you should re-run your Certbot command but be sure to list each name that you want the certificate to cover with the -d option.
You need to specify the webroot location, which presumably you found before in order to specify it when you originally got the certificate.
The existing certificate can be replaced automatically with a larger one in this case. You may be asked whether you want to do this. You can bypass that question by adding --expand to that command, which is equivalent to answering yes to the question.
Error message : Failed authorization procedure. www.mehl-family.fr (http-01): urn:acme:error:connection :: The server could not connect to the client to verify the domain :: Could not connect to www.mehl-family.fr