2018/04/20 17:56:05 [INFO] acme: Registering account for email@example.com
2018/04/20 17:56:05 [INFO][*.example.net] acme: Obtaining bundled SAN certificate
2018/04/20 17:56:06 [INFO][*.example.net] AuthURL: https://acme-v02.api.letsencrypt.org/acme/authz/xxxxxxxxxx
2018/04/20 17:56:06 [INFO][example.net] acme: Trying to solve DNS-01
2018/04/20 17:56:07 [example.net] failed to get certificate: Error presenting token: Zone net. not found in CloudFlare for domain _acme-challenge.example.net.
I have the same error when running Caddy either directly under the root user or using systemd.
I am running on Debian 9 with the newest Caddy binary available as of today.
I have tried creating the TXT record manually (with gibberish in the content) in Cloudflare and verified that it was seen on multiple DNS servers around the world but still get the same error.
What have I forgot? Any help is highly appreciated.
Wish I had a suggestion for you, but I’m stumped. It kinda looks like, based off that error, the Cloudflare plugin is trying to add the record to net. instead of example.net.?
You could try downloading xenolf/lego and see if you can replicate the issue (the DNS plugins all(?) import from there).