Skip to content
Discussion options

You must be logged in to vote

With the Cloudflare DNS hook, cleanup is scoped to the exact TXT value that acme.sh added; it does not delete every TXT record at that name.

The current dns_cf_rm() queries Cloudflare with both filters:

GET zones/.../dns_records?type=TXT&name=$fulldomain&content=$txtvalue

It then deletes only the returned record ID. The implementation is here: https://github.com/acmesh-official/acme.sh/blob/master/dnsapi/dns_cf.sh#L128-L158

So the Cloudflare edge-validation value remains as long as it differs from the ACME value created for your origin certificate. Two caveats:

  • This answer is specific to dns_cf; cleanup behavior belongs to each DNS-provider hook.
  • Use a narrowly scoped Cloudflare API tok…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by neilpang
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants