[GH-ISSUE #1186] [Bug] Cloudflare DNS 失败 #806

Open
opened 2026-03-03 01:06:08 +03:00 by kerem · 3 comments
Owner

Originally created by @chuoke on GitHub (Feb 7, 2026).
Original GitHub issue: https://github.com/certimate-go/certimate/issues/1186

Release Version / 软件版本

v0.3/v0.4

Description / 缺陷描述

域名在 cloudflare ,已确认 API TOKEN 没问题,DNS 权限已配。

但是报错,不知道是不是还需要配置其它的

Steps to reproduce / 复现步骤

  1. 添加 Cloudflare 域名 DNS 授权
  2. 添加 任务,使用 cloudflare DNS
  3. 运行失败

Logs / 日志

[2026-02-07 14:19:53][xxx.com] acme: Could not find solver for: tls-alpn-01
[2026-02-07 14:19:53][xxx.com] acme: Could not find solver for: http-01
[2026-02-07 14:19:53][xxx.com] acme: use dns-01 solver
[2026-02-07 14:19:53][xxx.com] acme: Preparing to solve DNS-01
[2026-02-07 14:19:56][xxx.com] acme: Cleaning DNS-01 challenge
[2026-02-07 14:19:56][xxx.com] acme: cleaning up failed: cloudflare: failed to find zone xxxx.com.: [status code 400] 6003: Invalid request headers; 6111: Invalid format for Authorization header
[2026-02-07 14:19:56]Deactivating auth: https://acme-v02.api.letsencrypt.org/acme/authz/2155***65/65423****
[2026-02-07 14:19:57] could not obtain certificate
[2026-02-07 14:19:57] failed to obtain certificate: error: one or more domains had a problem: [xxxx.com] [xxxx.com] acme: error presenting token: cloudflare: failed to find zone xxxx.com.: [status code 400] 6003: Invalid request headers; 6111: Invalid format for Authorization header

Miscellaneous / 其他

No response

Contribution / 贡献代码

  • I am interested in contributing a PR for this! / 我乐意为此提交代码并发起 PR!
Originally created by @chuoke on GitHub (Feb 7, 2026). Original GitHub issue: https://github.com/certimate-go/certimate/issues/1186 ### Release Version / 软件版本 v0.3/v0.4 ### Description / 缺陷描述 域名在 cloudflare ,已确认 API TOKEN 没问题,DNS 权限已配。 但是报错,不知道是不是还需要配置其它的 ### Steps to reproduce / 复现步骤 1. 添加 Cloudflare 域名 DNS 授权 2. 添加 任务,使用 cloudflare DNS 3. 运行失败 ### Logs / 日志 <details> ```console [2026-02-07 14:19:53][xxx.com] acme: Could not find solver for: tls-alpn-01 [2026-02-07 14:19:53][xxx.com] acme: Could not find solver for: http-01 [2026-02-07 14:19:53][xxx.com] acme: use dns-01 solver [2026-02-07 14:19:53][xxx.com] acme: Preparing to solve DNS-01 [2026-02-07 14:19:56][xxx.com] acme: Cleaning DNS-01 challenge [2026-02-07 14:19:56][xxx.com] acme: cleaning up failed: cloudflare: failed to find zone xxxx.com.: [status code 400] 6003: Invalid request headers; 6111: Invalid format for Authorization header [2026-02-07 14:19:56]Deactivating auth: https://acme-v02.api.letsencrypt.org/acme/authz/2155***65/65423**** [2026-02-07 14:19:57] could not obtain certificate [2026-02-07 14:19:57] failed to obtain certificate: error: one or more domains had a problem: [xxxx.com] [xxxx.com] acme: error presenting token: cloudflare: failed to find zone xxxx.com.: [status code 400] 6003: Invalid request headers; 6111: Invalid format for Authorization header ``` </details> ### Miscellaneous / 其他 _No response_ ### Contribution / 贡献代码 - [ ] I am interested in contributing a PR for this! / 我乐意为此提交代码并发起 PR!
Author
Owner

@fudiwei commented on GitHub (Feb 8, 2026):

CF 要用 API Token,不是 API Key。它的 Token 和 Key 是完全独立的两套鉴权方案。编辑授权的表单鼠标移到问号处查看相关说明。

<!-- gh-comment-id:3867104524 --> @fudiwei commented on GitHub (Feb 8, 2026): CF 要用 API Token,不是 API Key。它的 Token 和 Key 是完全独立的两套鉴权方案。编辑授权的表单鼠标移到问号处查看相关说明。
Author
Owner

@chuoke commented on GitHub (Feb 8, 2026):

CF 要用 API Token,不是 API Key。它的 Token 和 Key 是完全独立的两套鉴权方案。编辑授权的表单鼠标移到问号处查看相关说明。

是用的 API TOKEN , 我的描述有误,已修正。

<!-- gh-comment-id:3867173908 --> @chuoke commented on GitHub (Feb 8, 2026): > CF 要用 API Token,不是 API Key。它的 Token 和 Key 是完全独立的两套鉴权方案。编辑授权的表单鼠标移到问号处查看相关说明。 是用的 API TOKEN , 我的描述有误,已修正。
Author
Owner

@fudiwei commented on GitHub (Feb 10, 2026):

检查下前后是否多了空格之类的空白符

<!-- gh-comment-id:3877076240 --> @fudiwei commented on GitHub (Feb 10, 2026): 检查下前后是否多了空格之类的空白符
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/certimate#806
No description provided.