Acme: Error 400

I’m getting the following error trying to start caddy

rewrite] failed to get certificate: acme: Error 400 - urn:acme:error:malformed - Error creating new authz :: DNS name does not have enough labels

Any ideas?

Your Caddyfile is malformed. What is your Caddyfile?

I’ll post it here later (we’re having some connectivity issues), but I did run

  caddy -validate

and got no errors.

It’s syntactically valid, but I mean you are using a directive (rewrite) where there should be a site address.

Thanks Matt that was the issue alright. Fixed now. A stray }

1 Like