[GH-ISSUE #900] 不能使用cloudflare的API令牌申请证书,总是失败。 #612

Closed
opened 2026-03-03 01:04:41 +03:00 by kerem · 2 comments
Owner

Originally created by @chdeast on GitHub (Aug 1, 2025).
Original GitHub issue: https://github.com/certimate-go/certimate/issues/900

软件版本 / Release Version

v0.3.25

缺陷描述 / Description

不能使用cloudflare的API令牌申请证书,总是失败。

复现步骤 / Steps to reproduce

1.在cloudflare个人账户生成API令牌;
2.在Certimate授权管理新建授权;
3.Certimate创建工作流;
4.发布更改并执行;
5.执行历史状态显示失败。

日志 / Logs

# 请在此粘贴日志 / Paste logs here
[2025-08-01 21:21:49]
ready to obtain certificate ...
[2025-08-01 21:21:56]
failed to obtain certificate
[2025-08-01 21:21:56]
error: one or more domains had a problem: [*.acc.org] [*.acc.org] acme: error presenting token: cloudflare: failed to find zone acme.nginxwebui.cn.: ListZonesContext command failed: Invalid request headers (6003)

</details>

### 其他 / Miscellaneous

_No response_

### 贡献 / Contribution

- [ ] 我乐意为此贡献 PR! / I am interested in contributing a PR for this!
Originally created by @chdeast on GitHub (Aug 1, 2025). Original GitHub issue: https://github.com/certimate-go/certimate/issues/900 ### 软件版本 / Release Version v0.3.25 ### 缺陷描述 / Description 不能使用cloudflare的API令牌申请证书,总是失败。 ### 复现步骤 / Steps to reproduce 1.在cloudflare个人账户生成API令牌; 2.在Certimate授权管理新建授权; 3.Certimate创建工作流; 4.发布更改并执行; 5.执行历史状态显示失败。 ### 日志 / Logs <details> ```console # 请在此粘贴日志 / Paste logs here [2025-08-01 21:21:49] ready to obtain certificate ... [2025-08-01 21:21:56] failed to obtain certificate [2025-08-01 21:21:56] error: one or more domains had a problem: [*.acc.org] [*.acc.org] acme: error presenting token: cloudflare: failed to find zone acme.nginxwebui.cn.: ListZonesContext command failed: Invalid request headers (6003) </details> ### 其他 / Miscellaneous _No response_ ### 贡献 / Contribution - [ ] 我乐意为此贡献 PR! / I am interested in contributing a PR for this!
kerem 2026-03-03 01:04:41 +03:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

@chdeast commented on GitHub (Aug 1, 2025):

deepseek的解释:
域名配置错误 (关键矛盾点)
您真正想要申请证书的域名是 *.acc.org。
但错误显示脚本却在查找一个完全不相关的域名 acme.nginxwebui.cn 的区域。
这表明您的 ACME 客户端(如 Certbot 或 NginxWebUI)的配置文件中,Cloudflare 凭证关联到了错误的域名 acme.nginxwebui.cn,而不是您实际需要的 acc.org。这是一个典型的配置失误。
请问如何修改?

<!-- gh-comment-id:3144633657 --> @chdeast commented on GitHub (Aug 1, 2025): deepseek的解释: 域名配置错误 (关键矛盾点) 您真正想要申请证书的域名是 *.acc.org。 但错误显示脚本却在查找一个完全不相关的域名 acme.nginxwebui.cn 的区域。 这表明您的 ACME 客户端(如 Certbot 或 NginxWebUI)的配置文件中,Cloudflare 凭证关联到了错误的域名 acme.nginxwebui.cn,而不是您实际需要的 acc.org。这是一个典型的配置失误。 请问如何修改?
Author
Owner
<!-- gh-comment-id:3144671624 --> @fudiwei commented on GitHub (Aug 1, 2025): https://docs.certimate.me/docs/reference/faq/#%E6%97%A0%E6%B3%95%E7%94%B3%E8%AF%B7%E8%AF%81%E4%B9%A6
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#612
No description provided.