Caddy fails to obtain Letsencrypt certificate

Caddy fails to obtain a LetsEncrypt and gives the following error:

Activating privacy features...
2017/07/03 11:19:58 [INFO][[my sub].[domain].net] acme: Obtaining bundled SAN certificate
2017/07/03 11:19:58 [INFO][[my sub].[domain].net] AuthURL:
2017/07/03 11:19:58 [INFO][[my sub].[domain].net] acme: Trying to solve HTTP-01
2017/07/03 11:20:00 [[my sub].[domain].net] failed to get certificate: acme: Error 400 - urn:acme:error:connection - Fetching http://[my sub].[domain].net/.well-known/acme-challenge/Gi3HarIKCpDw8wVlCoQzz14e1pWg_tKYP-6wD0tUAJI: Error getting validation data
Error Detail:
        Validation for [my sub].[domain].net:80
        Resolved to:
                [my ip here]
        Used: [my ip here]

This is my Caddyfile:

[my sub].[domain].net {
        proxy / {

Have I missed some configuration needed in the Caddyfile?

I am running the ,latest docker image from abiosoft as of today (2017/07/03)

This usually means something else is responding to the challenge on port 80. Make sure your ports and DNS are configured properly.

Ports and DNS is configured correctly and I have verified that by starting Caddy up and forcing it HTTP only it works

I messed up the port forwarding on my Mikrotik router - messed up something on the target ports… So all is good now :slight_smile:

Told ya :wink:

Glad you figured it out!

1 Like

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