[GH-ISSUE #842] [Bug] EdgeOne 的 ModifyHostsCertificate 接口支持提交多个域名,不支持泛域名 #572

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

Originally created by @Trashblazer on GitHub (Jul 1, 2025).
Original GitHub issue: https://github.com/certimate-go/certimate/issues/842

软件版本 / Release Version

v0.3.20

缺陷描述 / Description

根据 ModifyHostsCertificate 接口的描述,Hosts 可以接受多个域名,实现一次部署到多个域名上。而Certimate限制了用户只能填入一个域名字符串。如果要想部署泛域名证书到多个子域上只能分别创建部署过程。

github.com/certimate-go/certimate@d6882cbc4f/pkg/core/ssl-deployer/providers/tencentcloud-eo/tencentcloud_eo.go (L102)


github.com/certimate-go/certimate@d6882cbc4f/pkg/core/ssl-deployer/providers/tencentcloud-eo/tencentcloud_eo.go (L28-L29)

ModifyHostsCertificate 接口并不支持泛域名写法,如果提交 *.example.com 会报错。

复现步骤 / Steps to reproduce

  1. 部署目标:腾讯云 - 边缘安全加速平台 EdgeOne
  2. 腾讯云 EdgeOne 加速域名:
*.exmaple.com (接口不支持)
example.com;wwwexample.com (接口支持,可以提交域名字符串数组)

日志 / Logs

No response

其他 / Miscellaneous

No response

贡献 / Contribution

  • 我乐意为此贡献 PR! / I am interested in contributing a PR for this!
Originally created by @Trashblazer on GitHub (Jul 1, 2025). Original GitHub issue: https://github.com/certimate-go/certimate/issues/842 ### 软件版本 / Release Version v0.3.20 ### 缺陷描述 / Description 根据 `ModifyHostsCertificate` 接口的描述,`Hosts` 可以接受多个域名,实现一次部署到多个域名上。而Certimate限制了用户只能填入一个域名字符串。如果要想部署泛域名证书到多个子域上只能分别创建部署过程。 https://github.com/certimate-go/certimate/blob/d6882cbc4f29c2a38afc351fa6da8286dfcac35e/pkg/core/ssl-deployer/providers/tencentcloud-eo/tencentcloud_eo.go#L102 - ModifyHostsCertificate: https://cloud.tencent.com/document/api/1552/80764 --- https://github.com/certimate-go/certimate/blob/d6882cbc4f29c2a38afc351fa6da8286dfcac35e/pkg/core/ssl-deployer/providers/tencentcloud-eo/tencentcloud_eo.go#L28-L29 `ModifyHostsCertificate` 接口并不支持泛域名写法,如果提交 `*.example.com` 会报错。 ### 复现步骤 / Steps to reproduce 1. 部署目标:腾讯云 - 边缘安全加速平台 EdgeOne 2. 腾讯云 EdgeOne 加速域名: ``` *.exmaple.com (接口不支持) example.com;wwwexample.com (接口支持,可以提交域名字符串数组) ``` ### 日志 / Logs _No response_ ### 其他 / Miscellaneous _No response_ ### 贡献 / Contribution - [ ] 我乐意为此贡献 PR! / I am interested in contributing a PR for this!
kerem 2026-03-03 01:04:23 +03:00
Author
Owner

@fudiwei commented on GitHub (Jul 1, 2025):

如无特殊说明,所有“支持泛域名”均指的是“云服务商处本身以泛域名接入”,而不是“以泛域名匹配所有同级域名”。

即在 EdgeOne 本身接入的就是泛域名 *.example.com;而不是接入的 a.example.com、b.example.com,填 *.example.com 企图匹配两者。

<!-- gh-comment-id:3023530636 --> @fudiwei commented on GitHub (Jul 1, 2025): 如无特殊说明,所有“支持泛域名”均指的是“云服务商处本身以泛域名接入”,而不是“以泛域名匹配所有同级域名”。 即在 EdgeOne 本身接入的就是泛域名 *.example.com;而不是接入的 a.example.com、b.example.com,填 *.example.com 企图匹配两者。
Author
Owner

@Trashblazer commented on GitHub (Jul 1, 2025):

即在 EdgeOne 本身接入的就是泛域名 *.example.com;而不是接入的 a.example.com、b.example.com,填 *.example.com 企图匹配两者。

明白了。

Hosts 可以一次提交多域个名这个特性,@fudiwei 你怎么看

<!-- gh-comment-id:3023687178 --> @Trashblazer commented on GitHub (Jul 1, 2025): > 即在 EdgeOne 本身接入的就是泛域名 *.example.com;而不是接入的 a.example.com、b.example.com,填 *.example.com 企图匹配两者。 明白了。 那 `Hosts` 可以一次提交多域个名这个特性,@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#572
No description provided.