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}
        }
}
Silver Golden
link
fedilink
English
11Y

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.

@Asudox@lemmy.world
creator
link
fedilink
English
2
edit-2
1Y

Already done that. The permissions of the API are Zone:Read & DNS:Edit That was what was stated in the Caddy github page.

Create a post

A place to share alternatives to popular online services that can be self-hosted without giving up privacy or locking you into a service you don’t control.

Rules:

  1. Be civil: we’re here to support and learn from one another. Insults won’t be tolerated. Flame wars are frowned upon.

  2. No spam posting.

  3. Posts have to be centered around self-hosting. There are other communities for discussing hardware or home computing. If it’s not obvious why your post topic revolves around selfhosting, please include details to make it clear.

  4. Don’t duplicate the full text of your blog or github here. Just post the link for folks to click.

  5. Submission headline should match the article title (don’t cherry-pick information from the title to fit your agenda).

  6. No trolling.

Resources:

Any issues on the community? Report it using the report flag.

Questions? DM the mods!

  • 1 user online
  • 129 users / day
  • 423 users / week
  • 1.16K users / month
  • 3.85K users / 6 months
  • 1 subscriber
  • 3.68K Posts
  • 74.2K Comments
  • Modlog