I’ve been installing and using LE in many servers without any problem but I need help with this issue. I get the following error:
Failed authorization procedure. disc-pre.upcnet.es (http-01): urn:acme:error:connection :: The server could not connect to the client to verify the domain :: Could not connect to http://disc-pre.upcnet.es/.well-known/acme-challenge/i4fdweYhip5Y6atva4-5WfMQ38eYS-R052c-ttPi6Kc
I try to generate the (staging) certificate using a script that executes this command:
./letsencrypt-auto certonly --non-interactive --staging --break-my-certs --force-renewal --agree-tos --email@example.com --webroot -w /var/www -d disc-pre.upcnet.es
I used a proxy to check the route and it seems accessible from outside, like this:
There is a rewrite rule from HTTP to HTTPS in the config file, I think LE follows redirects so I don’t see a problem here. In the 443 config there is other redirect like:
RedirectMatch ^/$ /owncloud/
That I guess is not a problem since we can check the test URL I just gave you, correct me if I’m wrong.
This is the access log related information where we see the different behaviours:
$ cat /var/log/apache2/access.log | fgrep .well-known
22.214.171.124 - - [17/Mar/2016:13:07:59 +0100] “GET /.well-known/acme-challenge/i4fdweYhip5Y6atva4-5WfMQ38eYS-R052c-ttPi6Kc HTTP/1.1” 302 721 “-” "Mozilla/5.0 (compatible; Let’s Encrypt validation server; +https://www.letsencrypt.org)"
126.96.36.199 - - [17/Mar/2016:11:26:32 +0100] “GET /.well-known/test.html HTTP/1.1” 200 5979 “-” “Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:45.0) Gecko/20100101 Firefox/45.0”
Any hint, guys? If you need any additional information just tell me.
Thank you in advance.