mirror of
https://github.com/certimate-go/certimate.git
synced 2026-04-25 20:55:52 +03:00
[GH-ISSUE #1199] [Bug] 网宿CDN Pro私钥上传加密方式错误 #814
Labels
No labels
announcement
backlog
bug
declined
documentation
duplicate
enhancement
good first issue
good first issue
help wanted
invalid
pull-request
question
stale
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/certimate#814
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @VupHub on GitHub (Feb 21, 2026).
Original GitHub issue: https://github.com/certimate-go/certimate/issues/1199
Originally assigned to: @VupHub on GitHub.
Release Version / 软件版本
v0.4.17
Description / 缺陷描述
网宿文档
网宿CDN Pro文档中关于privateKey字段的说明为:
用于指定证书私钥,必须是PEM格式的私钥。如果您选择生成自签名证书,则此处的值应为'RSA2048'或'ECC256'。请使用您API账号的密钥和时间戳对私钥进行加密再上传。请使用AES-128-CBC加密算法,并用base64编码。当您将私钥上传到CDN Pro时,这种加密方式可以保护您的私钥。
日志分析
根据 工作流的错误日志 与 网宿CDN Pro的OpenAPI 调用复现,可知:
报错示例
Steps to reproduce / 复现步骤
Logs / 日志
Miscellaneous / 其他
No response
Contribution / 贡献代码
@VupHub commented on GitHub (Feb 27, 2026):
正在等待网宿侧提供请求日志。
根据网宿文档,在 网宿CDN Pro的OpenAPI 未能跑通逻辑。
@fudiwei commented on GitHub (Feb 28, 2026):
从你的 Certimate 日志来看,并不能体现出私钥加密错误的问题。错误显示的是
identificationInfo这个字段不该传。但该提供商自 #617 实现以来这里是没有改动过的,你可以咨询下网宿他们的接口对这里的处理逻辑是不是有了变化。
我没有测试条件,你可以尝试在代码里删掉
identificationInfo字段的赋值后再试试看,如果是这样的话就发个 PR。