From 1164d502cace75ed0b5eb3b35cfa0a120b57a4fc Mon Sep 17 00:00:00 2001 From: xuans Date: Thu, 1 Oct 2026 06:43:25 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8E=A5=E5=85=A5=E6=8C=89=E6=9C=8D=E5=8A=A1?= =?UTF-8?q?=E5=99=A8HTTPS=E6=A0=A1=E9=AA=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 将生产证书部署工作流接入按目标服务器地址进行HTTPS验证,保留域名SNI和证书链校验。 --- backend/internal/app/app.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/backend/internal/app/app.go b/backend/internal/app/app.go index 29dbc42..5ea1838 100644 --- a/backend/internal/app/app.go +++ b/backend/internal/app/app.go @@ -134,8 +134,8 @@ func NewWithConfigPath(ctx context.Context, cfg config.Config, configPath string Domains: repo, Servers: serverRepo, Deployment: deploymentService, - RemoteVerifier: func(ctx context.Context, endpoint string, expectedDomains []string) (certificate.ValidationResult, error) { - return remoteValidator.ValidateHTTPS(ctx, endpoint, expectedDomains) + RemoteVerifierForServer: func(ctx context.Context, server deployment.Server, endpoint string, expectedDomains []string) (certificate.ValidationResult, error) { + return remoteValidator.ValidateHTTPSAt(ctx, endpoint, server.Address, expectedDomains) }, Notifier: notifier, NotifyError: func(err error) { logger.Error("发送邮件通知失败", "error", err) },