Skip to content

解析:EdgeOne HTTPS 可以手选腾讯云 SSL 证书 - #5

Merged
bocmiao merged 1 commit into
mainfrom
feat/edgeone-cert-picker
Oct 18, 2026
Merged

bocmiao merged 1 commit into
mainfrom
feat/edgeone-cert-picker

Conversation

@bocmiao

@bocmiao bocmiao commented Oct 18, 2026

Copy link
Copy Markdown
Owner

改了什么

「解析 → 一键解析」里勾选「经过 EdgeOne」后,HTTPS 现在有两种选择:

  • 申请 EdgeOne 免费证书(默认,自动续签)
  • 选一张腾讯云 SSL 证书里已有的证书:下拉框只列出已签发、包含当前域名的证书(包括上传的证书和托管在腾讯云、会自动续期的证书),显示到期时间,不会重复申请;没有合适的证书时提示去「证书」页申请。

对应的 eo.https.set 增加 mode=sslcert 和 cert:执行前会确认证书已签发且覆盖这个加速域名,部署失败会自动恢复原来的证书设置,撤销也会恢复。新增 GET /api/certificates/tencent 给下拉框读取证书列表。

另外:解析记录的状态列现在会把 sslcert 标成「腾讯云证书」,AI 的操作说明也同步更新了。

验证

  • go build ./... 通过;
  • go test ./internal/tencent -run TestSSLCert、go test ./internal/actions -run TestEdgeOne、go test ./internal/app -run TestDNS、证书总览相关测试通过;
  • 用真实腾讯云账号只读验证了页面:miao.club 的下拉框正确列出 *.miao.club 的两张证书,切换主机记录时按覆盖范围过滤;生成清单后确认第三步是「用腾讯云 SSL 证书 ... 给 baize.miao.club 开启 HTTPS」,没有执行任何变更。

注:完整 go test ./... 在 Windows 上会因为测试里调用 sh、路径以 / 开头等 Linux 假设失败,与本次改动无关。

The one-click DNS sheet used to offer only EdgeOne's free certificate.
It now lists issued certificates from Tencent Cloud SSL that cover the
name, keeps the free certificate as the default, and deploys the chosen
one through EdgeOne (eo.https.set mode=sslcert). The capability checks
that the certificate is issued and covers the domain, and undo restores
the previous certificate setting.

Adds GET /api/certificates/tencent for the picker and shows whether a
certificate is hosted/renewed by Tencent Cloud, with its expiry date.
@bocmiao
bocmiao merged commit 6f47a91 into main Oct 18, 2026
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant