Could not connect to

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

I ran this command: ./certbot-auto renew --dry-run

It produced this output:
Attempting to renew cert from /etc/letsencrypt/renewal/ produced an unexpected error: Failed authorization procedure. (http-01): urn:acme:error:connection :: The server could not connect to the client to verify the domain :: Could not connect to Skipping.

My web server is (include version): apache2

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

I´m getting the showed error message while running a dry-run. I think there is a problem in the domain name config because of this "Could not connect to ""
Shouldn´t it be ""
I can reach it in my browser. My question is: How to change this?

Probably a redirect gone wrong (missing a /). But b/c you didn’t post your real hostname, I can’t check that.

Okay thank you. Its:

As I suspected, you’re redirecting HTTP to HTTPS. That’s fine, the Let’s Encrypt will just follow the redirect, but the redirect is broken:

osiris@desktop ~ $ curl -LI
HTTP/1.1 301 Moved Permanently
Date: Tue, 07 Mar 2017 21:29:23 GMT
Server: Apache
Vary: Accept-Encoding
Content-Type: text/html; charset=iso-8859-1

curl: (6) Could not resolve host:
osiris@desktop ~ $ 

See? Your redirect is missing a / after the hostname. So you’ll have to go into your Apache configuration for this hostname (HTTP) and add a / to the redirect code.


Oh man thank you! That was it!

While you’re at it, you might want to improve your servers configuration even further:

osiris@desktop ~ $ openssl s_client -connect -servername
depth=0 CN =
verify error:num=20:unable to get local issuer certificate
verify return:1
depth=0 CN =
verify error:num=21:unable to verify the first certificate
verify return:1
Certificate chain
 0 s:/
   i:/C=US/O=Let's Encrypt/CN=Let's Encrypt Authority X3

The intermediate certificate is missing. As all browsers only contain the root certificates of CA’s and such an intermediate is used between the root and actual server certificate, clients need this intermediate to “complete” the chain to the root certificate.

That’s probably because you’ve used cert.pem without using chain.pem. If you’re using Apache version before 2.4.8 you’ll need to add the directive SSLCertificateChainFile and point it to the appropriate chain.pem (same folder as your cert.pem and privkey.pem currently). Or, if your Apache version is the same or newer than 2.4.8 just change cert.pem to fullchain.pem (this latter is a file containing cert.pem+chain.pem in one file).

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