Status 400 and Too many redirects

My domain is:

I ran this command:
certbot certonly --dry-run --standalone -w /home/debianpl/web/ -d -v
And this command:
certbot certonly --dry-run --webroot -w /home/debianpl/web/ -d -v
And this:
certbot certonly --dry-run --standalone -d
And many variations of those.

It always produced this output (even with stopped apache and with standalone option):
Failed authorization procedure. (http-01): urn:ietf:params:acme:error:connection :: The server could not connect to the client to verify the domain :: Fetching Too many redirects
More verbose:
"challenges": [
"type": "http-01",
"status": "invalid",
"error": {
"type": "urn:ietf:params:acme:error:connection",
"detail": "Fetching Too many redirects",
"status": 400

My web server is (include version):
Apache 2.4.38-3
The operating system my web server runs on is (include version):
Debian stable

I can login to a root shell on my machine: yes

I'm using a control panel to manage my site: no

The version of my client is (e.g. output of certbot --version or certbot-auto --version if you're using Certbot): certbot 0.31.0

And if i make curl request: curl -Lvk
* Trying
* Connected to ( port 80 (#0)
> GET /.well-known/acme-challenge/3oHoOKzACl04I2f9pFQ4KIKCJ6-V51-9sJpIJjAfaWY HTTP/1.1
> Host:
> User-Agent: curl/7.68.0
> Accept: /
* Mark bundle as not supporting multiuse
< HTTP/1.1 200 OK
< Date: Thu, 29 Oct 2020 08:45:22 GMT
< Server: Apache/2.4.38 (Debian)
< Last-Modified: Thu, 29 Oct 2020 08:12:37 GMT
< ETag: "0-5b2cad7cc00c6"
< Accept-Ranges: bytes
< Content-Length: 0
* Connection #0 to host left intact

Try with -6 and you'll be able to reproduce it. Or take a gander at this.


This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.