[GH-ISSUE #1117] [Bug] 51DNS提供商申请证书失败 #755

Closed
opened 2026-03-03 01:05:45 +03:00 by kerem · 4 comments
Owner

Originally created by @13723778149 on GitHub (Dec 22, 2025).
Original GitHub issue: https://github.com/certimate-go/certimate/issues/1117

Release Version / 软件版本

v.4.10

Description / 缺陷描述

选择51DNS提供商,运行工作流时,提示申请错误,对授权凭证进行了确认,没有前后空格,AK是正确的。

Steps to reproduce / 复现步骤

Image

Logs / 日志

已失败
#zG0KCB40DvjtJlLidX9L 开始
[2025-12-22 17:32:45]
the workflow is starting
#368o0_8i1VZ-O14ibYtpn 监控
[2025-12-22 17:32:45]
ready to monitor certificate ...
[2025-12-22 17:32:45]
retrieving certificate at gatewaywss.xq.hn.cn:3010 (domain: gatewaywss.xq.hn.cn)
[2025-12-22 17:32:45]
ssl certificate retrieved (serial='17738598298320257285921187205816527841', subject='CN=gatewaywss.xq.hn.cn', issuer='CN=Encryption Everywhere DV TLS CA - G2,OU=www.digicert.com,O=DigiCert Inc,C=US', not_before='2025-10-02T00:00:00Z', not_after='2025-12-30T23:59:59Z', sans='gatewaywss.xq.hn.cn;www.gatewaywss.xq.hn.cn')
[2025-12-22 17:32:45]
the certificate is valid, and will expire in 8 day(s)
[2025-12-22 17:32:45]
monitoring completed
#JOf-6wldIJTtAlq2xcNFl 若网站证书即将过期…
[2025-12-22 17:32:45]
enter this branch, because condition met
#wbu--S6_XxWcNqf9DO5Dk 通知
[2025-12-22 17:32:45]
ready to send notification ...
[2025-12-22 17:32:45]
notification completed
#fBjxqnLdJ7JMZwyjYG_iN 申请
[2025-12-22 17:32:45]
ready to request certificate ...
[2025-12-22 17:32:45]
no found last issued certificate, begin to apply
[2025-12-22 17:32:45]
acme config initialized
[2025-12-22 17:32:45]
acme account initialized
[2025-12-22 17:32:46]
[gatewaywss.xq.hn.cn] acme: Obtaining bundled SAN certificate
[2025-12-22 17:32:48]
[gatewaywss.xq.hn.cn] AuthURL: https://acme-v02.api.letsencrypt.org/acme/authz/2860502496/631261109186
[2025-12-22 17:32:48]
[gatewaywss.xq.hn.cn] acme: Could not find solver for: tls-alpn-01
[2025-12-22 17:32:48]
[gatewaywss.xq.hn.cn] acme: Could not find solver for: http-01
[2025-12-22 17:32:48]
[gatewaywss.xq.hn.cn] acme: use dns-01 solver
[2025-12-22 17:32:48]
[gatewaywss.xq.hn.cn] acme: Preparing to solve DNS-01
[2025-12-22 17:32:48]
[gatewaywss.xq.hn.cn] acme: Cleaning DNS-01 challenge
[2025-12-22 17:32:48]
[gatewaywss.xq.hn.cn] acme: cleaning up failed: 51dnscom: unknown record ID for '_acme-challenge.gatewaywss.xq.hn.cn.'
[2025-12-22 17:32:48]
Deactivating auth: https://acme-v02.api.letsencrypt.org/acme/authz/2860502496/631261109186
[2025-12-22 17:32:49]
could not obtain certificate
[2025-12-22 17:32:49]
failed to obtain certificate: error: one or more domains had a problem: [gatewaywss.xq.hn.cn] [gatewaywss.xq.hn.cn] acme: error presenting token: 51dnscom: error when list zones: sdkerr: failed to unmarshal response: json: cannot unmarshal string into Go struct field .data.recordCount of type int32
#A_Wi0v3AMDQ2zpowA1a_q 若网站证书已过期…
[2025-12-22 17:32:49]
skip this branch, because condition not met
#dkhkPwznoFCWfx11xEc4y 通知
[2025-12-22 17:32:49]
ready to send notification ...
[2025-12-22 17:32:49]
notification completed
#DXTH2QSMBfW3Nx6l7WCjR 结束
[2025-12-22 17:32:49]
the workflow is ending

Miscellaneous / 其他

No response

Contribution / 贡献代码

  • I am interested in contributing a PR for this! / 我乐意为此提交代码并发起 PR!
Originally created by @13723778149 on GitHub (Dec 22, 2025). Original GitHub issue: https://github.com/certimate-go/certimate/issues/1117 ### Release Version / 软件版本 v.4.10 ### Description / 缺陷描述 选择51DNS提供商,运行工作流时,提示申请错误,对授权凭证进行了确认,没有前后空格,AK是正确的。 ### Steps to reproduce / 复现步骤 <img width="729" height="1308" alt="Image" src="https://github.com/user-attachments/assets/336eb838-a595-41e0-b3d7-ac9b22584901" /> ### Logs / 日志 <details> ```console 已失败 #zG0KCB40DvjtJlLidX9L 开始 [2025-12-22 17:32:45] the workflow is starting #368o0_8i1VZ-O14ibYtpn 监控 [2025-12-22 17:32:45] ready to monitor certificate ... [2025-12-22 17:32:45] retrieving certificate at gatewaywss.xq.hn.cn:3010 (domain: gatewaywss.xq.hn.cn) [2025-12-22 17:32:45] ssl certificate retrieved (serial='17738598298320257285921187205816527841', subject='CN=gatewaywss.xq.hn.cn', issuer='CN=Encryption Everywhere DV TLS CA - G2,OU=www.digicert.com,O=DigiCert Inc,C=US', not_before='2025-10-02T00:00:00Z', not_after='2025-12-30T23:59:59Z', sans='gatewaywss.xq.hn.cn;www.gatewaywss.xq.hn.cn') [2025-12-22 17:32:45] the certificate is valid, and will expire in 8 day(s) [2025-12-22 17:32:45] monitoring completed #JOf-6wldIJTtAlq2xcNFl 若网站证书即将过期… [2025-12-22 17:32:45] enter this branch, because condition met #wbu--S6_XxWcNqf9DO5Dk 通知 [2025-12-22 17:32:45] ready to send notification ... [2025-12-22 17:32:45] notification completed #fBjxqnLdJ7JMZwyjYG_iN 申请 [2025-12-22 17:32:45] ready to request certificate ... [2025-12-22 17:32:45] no found last issued certificate, begin to apply [2025-12-22 17:32:45] acme config initialized [2025-12-22 17:32:45] acme account initialized [2025-12-22 17:32:46] [gatewaywss.xq.hn.cn] acme: Obtaining bundled SAN certificate [2025-12-22 17:32:48] [gatewaywss.xq.hn.cn] AuthURL: https://acme-v02.api.letsencrypt.org/acme/authz/2860502496/631261109186 [2025-12-22 17:32:48] [gatewaywss.xq.hn.cn] acme: Could not find solver for: tls-alpn-01 [2025-12-22 17:32:48] [gatewaywss.xq.hn.cn] acme: Could not find solver for: http-01 [2025-12-22 17:32:48] [gatewaywss.xq.hn.cn] acme: use dns-01 solver [2025-12-22 17:32:48] [gatewaywss.xq.hn.cn] acme: Preparing to solve DNS-01 [2025-12-22 17:32:48] [gatewaywss.xq.hn.cn] acme: Cleaning DNS-01 challenge [2025-12-22 17:32:48] [gatewaywss.xq.hn.cn] acme: cleaning up failed: 51dnscom: unknown record ID for '_acme-challenge.gatewaywss.xq.hn.cn.' [2025-12-22 17:32:48] Deactivating auth: https://acme-v02.api.letsencrypt.org/acme/authz/2860502496/631261109186 [2025-12-22 17:32:49] could not obtain certificate [2025-12-22 17:32:49] failed to obtain certificate: error: one or more domains had a problem: [gatewaywss.xq.hn.cn] [gatewaywss.xq.hn.cn] acme: error presenting token: 51dnscom: error when list zones: sdkerr: failed to unmarshal response: json: cannot unmarshal string into Go struct field .data.recordCount of type int32 #A_Wi0v3AMDQ2zpowA1a_q 若网站证书已过期… [2025-12-22 17:32:49] skip this branch, because condition not met #dkhkPwznoFCWfx11xEc4y 通知 [2025-12-22 17:32:49] ready to send notification ... [2025-12-22 17:32:49] notification completed #DXTH2QSMBfW3Nx6l7WCjR 结束 [2025-12-22 17:32:49] the workflow is ending ``` </details> ### Miscellaneous / 其他 _No response_ ### Contribution / 贡献代码 - [ ] I am interested in contributing a PR for this! / 我乐意为此提交代码并发起 PR!
kerem 2026-03-03 01:05:45 +03:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

@fudiwei commented on GitHub (Dec 22, 2025):

方便协助进行调试、或提供你的 API Key&Secret 吗?51DNS 的 API 是付费的,我没有相关权限,只能按照它的文档来封装。

文档里给出的 recordCount 是一个 int:

https://www.51dns.com/document/api/4/48.html

但错误日志中却显示它是一个 string 😕

如果可以协助调试,请在评论告知你所使用的操作系统及 CPU 架构,我会发送一个带有 debug 输出的开发版本可执行文件;如果可以提供 API Key&Secret,请发送我到的邮箱(点我的头像可在个人主页中查看)。

<!-- gh-comment-id:3681542292 --> @fudiwei commented on GitHub (Dec 22, 2025): 方便协助进行调试、或提供你的 API Key&Secret 吗?51DNS 的 API 是付费的,我没有相关权限,只能按照它的文档来封装。 文档里给出的 `recordCount` 是一个 int: > https://www.51dns.com/document/api/4/48.html > <img src="https://github.com/user-attachments/assets/8c4cda2b-18d0-4a70-8fb3-33f4bb290709" /> 但错误日志中却显示它是一个 string 😕 如果可以协助调试,请在评论告知你所使用的操作系统及 CPU 架构,我会发送一个带有 debug 输出的开发版本可执行文件;如果可以提供 API Key&Secret,请发送我到的邮箱(点我的头像可在个人主页中查看)。
Author
Owner

@13723778149 commented on GitHub (Dec 23, 2025):

非常谢谢,已经发送到您的邮箱[fudiwei@sina.com]

<!-- gh-comment-id:3684714186 --> @13723778149 commented on GitHub (Dec 23, 2025): 非常谢谢,已经发送到您的邮箱[fudiwei@sina.com]
Author
Owner

@fudiwei commented on GitHub (Dec 23, 2025):

@13723778149 感谢提供。调试已结束,请重置你的 API 密钥,以免数据泄露。

另外可能会有一些调试时遗留的 TXT 解析记录 _acme-challenge 记得删除。

<!-- gh-comment-id:3685105176 --> @fudiwei commented on GitHub (Dec 23, 2025): @13723778149 感谢提供。调试已结束,请重置你的 API 密钥,以免数据泄露。 另外可能会有一些调试时遗留的 TXT 解析记录 `_acme-challenge` 记得删除。
Author
Owner

@13723778149 commented on GitHub (Dec 24, 2025):

好的,感谢您解决了这个问题,非常棒,为certimate项目感到自豪。

<!-- gh-comment-id:3688321305 --> @13723778149 commented on GitHub (Dec 24, 2025): 好的,感谢您解决了这个问题,非常棒,为certimate项目感到自豪。
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#755
No description provided.