Renewing certificate failing (could not connect to domain.com)

Please fill out the fields below so we can help you better.

My domain is:esrv.eu

I ran this command:certbot

It produced this output:“type”:
“http-01”,
“status”: “invalid”,
“error”: {
“type”: “urn:acme:error:connection”,
“detail”: “Could not connect to www.domain.com”,
“status”: 400
},

My web server is (include version):nginx/1.6.2

The operating system my web server runs on is (include version):Debian 3.16.36-1+deb8u2 (2016-10-19) x86_64

My hosting provider, if applicable, is:

I can login to a root shell on my machine (yes or no, or I don’t know):yes

I’m using a control panel to manage my site (no, or provide the name and version of the control panel):shell or WebMin

I can insert a textfile in the ACME-challenge directory and view it, but since the error says it can’t connect to my domain (instead of domain/.well-known/acme-challenge/-challenge-id-) it may be another issue. (DNS, ipv6, or some other config)

Hope somebody can help me out.
JaminV

This issue was resolved by editing the nginx config of the site.
The site had a rewrite rule to forcibly prepend a www, which caused letsencrypt to not connect properly.

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