When I run
certbot --authenticator webroot --installer apache -w /var/www/
I get this (my domain is anonymized as xxx):
Starting new HTTPS connection (1): acme-v01.api.letsencrypt.org
Obtaining a new certificate
Performing the following challenges:
http-01 challenge for login.xxx.de
Using the webroot path /var/www for all unmatched domains.
Waiting for verification…
Cleaning up challenges
Unable to clean up challenge directory /var/www/.well-known/acme-challenge
Failed authorization procedure. login.xxx.de (http-01): urn:acme:error:connection :: The server could not connect to the client to verify the domain :: Fetching https://login.xxx.de.well-known/acme-challenge/jbIL-Dov3LBAcNyiy2VJvKCbg1YntucdVomX-34r7G0: Error getting validation data
IMPORTANT NOTES:
-
The following errors were reported by the server:
Domain: login.xxx.de
Type: connection
Detail: Fetching
https://login.xxx.de.well-known/acme-challenge/jbIL-Dov3LBAcNyiy2VJvKCbg1YntucdVomX-34r7G0:
Error getting validation data
The installer script creates /var/www/.well-known, but in my view, the issue is that the installer script seems to put a “.” instead of a slash. It tries to access “…de.well-known/…” instead of “…de/.well-known/…”.
I run apache2 on Debian 8.1. I have not modified any apache2 config files yet.
I manually created the file “test” in .well-known and can access it online: https://login.xxx.de/.well-known/test works.