[GH-ISSUE #1075] [Bug] 腾讯云EdgeOne多证书模式无法更新证书 #726

Closed
opened 2026-03-03 01:05:32 +03:00 by kerem · 1 comment
Owner

Originally created by @Netrvin on GitHub (Dec 1, 2025).
Original GitHub issue: https://github.com/certimate-go/certimate/issues/1075

Release Version / 软件版本

v0.4.7

Description / 缺陷描述

github.com/certimate-go/certimate@1fd0e50f43/pkg/core/deployer/providers/tencentcloud-eo/tencentcloud_eo.go (L197)
github.com/certimate-go/certimate@1fd0e50f43/pkg/core/deployer/providers/tencentcloud-eo/tencentcloud_eo.go (L92)
github.com/certimate-go/certimate@1fd0e50f43/pkg/utils/crypto/key/key.go (L31-L46)
该功能通过GetPrivateKeyAlgorithm获取私钥算法,但入参却使用了string,因此GetPrivateKeyAlgorithm将永远返回x509.UnknownPublicKeyAlgorithm,导致无法正确识别证书算法,从而向EdgeOne接口提交相同算法的两份证书(新申请证书、原有证书),造成部署失败

Steps to reproduce / 复现步骤

  1. 使用多证书模式更新证书

Logs / 日志

# Paste logs here / 请在此粘贴日志

Miscellaneous / 其他

No response

Contribution / 贡献代码

  • I am interested in contributing a PR for this! / 我乐意为此提交代码并发起 PR!
Originally created by @Netrvin on GitHub (Dec 1, 2025). Original GitHub issue: https://github.com/certimate-go/certimate/issues/1075 ### Release Version / 软件版本 v0.4.7 ### Description / 缺陷描述 https://github.com/certimate-go/certimate/blob/1fd0e50f4306c467ee69c6a340cbecc099ee25c2/pkg/core/deployer/providers/tencentcloud-eo/tencentcloud_eo.go#L197 https://github.com/certimate-go/certimate/blob/1fd0e50f4306c467ee69c6a340cbecc099ee25c2/pkg/core/deployer/providers/tencentcloud-eo/tencentcloud_eo.go#L92 https://github.com/certimate-go/certimate/blob/1fd0e50f4306c467ee69c6a340cbecc099ee25c2/pkg/utils/crypto/key/key.go#L31-L46 该功能通过`GetPrivateKeyAlgorithm`获取私钥算法,但入参却使用了`string`,因此`GetPrivateKeyAlgorithm`将永远返回`x509.UnknownPublicKeyAlgorithm`,导致无法正确识别证书算法,从而向EdgeOne接口提交相同算法的两份证书(新申请证书、原有证书),造成部署失败 ### Steps to reproduce / 复现步骤 1. 使用多证书模式更新证书 ### Logs / 日志 <details> ```console # Paste logs here / 请在此粘贴日志 ``` </details> ### Miscellaneous / 其他 _No response_ ### Contribution / 贡献代码 - [x] I am interested in contributing a PR for this! / 我乐意为此提交代码并发起 PR!
kerem 2026-03-03 01:05:32 +03:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

@Netrvin commented on GitHub (Dec 1, 2025):

该功能在 https://github.com/certimate-go/certimate/pull/1049 引入 @fudiwei

<!-- gh-comment-id:3596642659 --> @Netrvin commented on GitHub (Dec 1, 2025): 该功能在 https://github.com/certimate-go/certimate/pull/1049 引入 @fudiwei
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#726
No description provided.