Fails to grab SSL certificate (acme error 403)

Im trying to run the command caddy -conf /etc/Caddyfile but the result is always the same error.

The entire attempt log is:
Activating privacy features... 2019/06/24 04:14:10 [INFO] [i.phoenixonaroof.me] acme: Obtaining bundled SAN certificate 2019/06/24 04:14:11 [INFO] [i.phoenixonaroof.me] AuthURL: https://acme-v02.api.letsencrypt.org/acme/authz/TIQXOkGylLmdci-8jxCFILPmN2uodIAPcnDjZ8gMJ0U 2019/06/24 04:14:11 [INFO] [i.phoenixonaroof.me] acme: use tls-alpn-01 solver 2019/06/24 04:14:11 [INFO] [i.phoenixonaroof.me] acme: Trying to solve TLS-ALPN-01 2019/06/24 04:14:12 [INFO] Unable to deactivated authorizations: https://acme-v02.api.letsencrypt.org/acme/authz/TIQXOkGylLmdci-8jxCFILPmN2uodIAPcnDjZ8gMJ0U 2019/06/24 04:14:12 [i.phoenixonaroof.me] failed to obtain certificate: acme: Error -> One or more domains had a problem: [i.phoenixonaroof.me] acme: error: 403 :: urn:ietf:params:acme:error:unauthorized :: Cannot negotiate ALPN protocol "acme-tls/1" for tls-alpn-01 challenge, url:

I got it to work by disabling CloudFlare protection

1 Like

Glad to hear you got it sorted! And, thanks for posting when you found out what the cause was.

Just as a heads up, Caddy should soon be able to work around the Cloudflare protection with the help of a recent addition:

This update hasn’t made its way into a release quite yet, but the next version of Caddy should have it!

1 Like