As said in the tittle I used LE to create two certificates for two virtual hosts on the same server. They are working fine.
Host: Debian 7
Web server: Apache 2.2
When I tried to test the dry-run renewal like this:
./certbot-auto renew --dry-run
I got this error:
(don't ask for the real domain name, I can't ! )
Attempting to renew cert from /etc/letsencrypt/renewal/domain.com produced an unexpected error: Failed authorization procedure. domain.com (http-01): urn:acme:error:unauthorized :: The client lacks sufficient authorization :: Invalid response from http://domain.com/.well-known/acme-challenge/NPHTd60zDOKd4MwNJsbctE3x69nIGLSDGUYKTcMzNoE: "
<html ". Skipping.
- The following errors were reported by the server:
Detail: Invalid response from
"<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
But for the second virtual host everything works just fine... They both have in their document root a .well-known folder with the same permissions:
drwxr-xr-x 2 root root 4096 juin 14 14:34 .well-known
And if I create a file with some text in it, I can reach it and read it without any problems on both virtual hosts.
I know this problem seems to be very popular but I don't find how to fix this...
I also tried this command, just to be sure:
./certbot-auto renew --dry-run --pre-hook "/etc/init.d/apache2 stop" --post-hook "/etc/init.d/apache2 start"
This is the part of the virtual host about the HTTPS: https://paste.debian.net/hidden/7677ddd8/
Do you have a clue, please ?
If you need more informations, please ask.
EDIT: I tried to use the command:
And I didn't get an error, since they are not due to renewal. Is this normal to have this behaviour when the dry-run failed?