fix: 上传到阿里云cas,证书前缀无效的bug

This commit is contained in:
xiaojunnuo
2025-07-22 23:53:33 +08:00
parent 4e5e862f58
commit b382351c7b
3 changed files with 12 additions and 2 deletions
@@ -97,7 +97,12 @@ export class UploadCertToAliyun extends AbstractTaskPlugin {
logger: this.logger,
endpoint,
});
const certName = this.buildCertName(CertReader.getMainDomain(this.cert.crt))
let certName = ""
if (this.name){
certName = this.appendTimeSuffix(this.name)
}else{
certName = this.buildCertName(CertReader.getMainDomain(this.cert.crt))
}
this.aliyunCertId = await client.uploadCert({
name: certName,
cert: this.cert,