pull/370/head
xiaojunnuo 2025-04-07 18:22:39 +08:00
parent 59a6043549
commit 2e0c067cd2
1 changed files with 5 additions and 0 deletions

View File

@ -84,6 +84,10 @@ export class DeployCertToAliyunCDN extends AbstractTaskPlugin {
endpoint: this.endpoint || 'cas.aliyuncs.com',
});
if(this.cert == null){
throw new Error('域名证书参数为空,请检查前置任务')
}
let certId: any = this.cert;
if (typeof this.cert === 'object') {
certId = await sslClient.uploadCert({
@ -128,6 +132,7 @@ export class DeployCertToAliyunCDN extends AbstractTaskPlugin {
'SetCdnDomainSSLCertificate',
{
SSLProtocol: 'on',
CertType:"cas",
...params,
},
requestOption