Hello, I am a pretty new beginner to website stuff and was trying to get my personal website to run on my VPS. The website’s DNS is Cloudflare and I am trying to get it to work using Caddy. I’ve been trying to get past the acme challenge solving thing, but always get this error message:
ERROR tls.obtain could not get certificate from issuer {"identifier": "asudox.dev", "issuer": "acme-v02.api.letsencrypt.org-directory", "error": "[asudox.dev] solving challenges: waiting for solver certmagic.solverWrapper to be ready: timed out waiting for record to fully propagate; verify DNS provider configuration is correct - last error: <nil> (order=https://acme-staging-v02.api.letsencrypt.org/acme/order/111399894/9853568284) (ca=https://acme-staging-v02.api.letsencrypt.org/directory)"}
As much as I’ve seen from the Cloudflare dashboard, the acme challenge record gets created. What is the problem? I also tried to change the resolver to Cloudflare’s as it is a troubleshooting step in the Cloudflare Caddy module github page, but that also did not work.
Here’s the Caddyfile:
asudox.dev {
respond "Test"
tls {
dns cloudflare {env.CF_API_TOKEN}
}
}
It’s been a while since I use caddy but I use the dns for nginx, make sure you are using the correct api key, it does not like using a too permissive one.
So a zone token instead of an account token.Already done that. The permissions of the API are Zone:Read & DNS:Edit That was what was stated in the Caddy github page.
Try adding
resolvers 1.1.1.1
in the tls block below dns cloudflare
As mentioned, I’ve already tried that.