From 7908ab79da624c94fa05849925b15e480e3317c4 Mon Sep 17 00:00:00 2001 From: xiaojunnuo Date: Mon, 9 Sep 2024 10:17:25 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E8=85=BE=E8=AE=AF?= =?UTF-8?q?=E4=BA=91cdn=E8=AF=81=E4=B9=A6=E9=83=A8=E7=BD=B2=E5=90=8E?= =?UTF-8?q?=E4=BC=9A=E8=87=AA=E5=8A=A8=E5=85=B3=E9=97=ADhsts=EF=BC=8Chttp2?= =?UTF-8?q?.0=E7=AD=89=E9=85=8D=E7=BD=AE=E7=9A=84bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit https://github.com/certd/certd/issues/161 --- .../plugin-tencent/plugin/deploy-to-cdn/index.ts | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/packages/ui/certd-server/src/plugins/plugin-tencent/plugin/deploy-to-cdn/index.ts b/packages/ui/certd-server/src/plugins/plugin-tencent/plugin/deploy-to-cdn/index.ts index 312dc1ca..2334ad76 100644 --- a/packages/ui/certd-server/src/plugins/plugin-tencent/plugin/deploy-to-cdn/index.ts +++ b/packages/ui/certd-server/src/plugins/plugin-tencent/plugin/deploy-to-cdn/index.ts @@ -93,20 +93,20 @@ export class DeployToCdnPlugin extends AbstractTaskPlugin { buildParams() { return { - Https: { - Switch: 'on', - CertInfo: { + Domain: this.domainName, + Route: 'Https.CertInfo', + Value: JSON.stringify({ + update: { Certificate: this.cert.crt, PrivateKey: this.cert.key, }, - }, - Domain: this.domainName, + }), }; } async doRequest(params: any) { const client = await this.getClient(); - const ret = await client.UpdateDomainConfig(params); + const ret = await client.ModifyDomainConfig(params); this.checkRet(ret); this.logger.info('设置腾讯云CDN证书成功:', ret.RequestId); return ret.RequestId;