Repository navigation
解析:EdgeOne HTTPS 可以手选腾讯云 SSL 证书 - #5
Merged
Merged
Conversation
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
改了什么
「解析 → 一键解析」里勾选「经过 EdgeOne」后,HTTPS 现在有两种选择:
对应的
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 假设失败,与本次改动无关。