perf: 默认证书更新时间设置为35天,增加腾讯云删除过期证书插件,可以避免腾讯云过期证书邮件

This commit is contained in:
xiaojunnuo
2024-10-28 15:31:45 +08:00
parent f92d918a1e
commit 51b6fed468
8 changed files with 230 additions and 5 deletions
@@ -55,4 +55,21 @@ export class TencentSslClient {
this.checkRet(res);
return res;
}
async DescribeCertificates(params: any) {
const client = await this.getSslClient();
const res = await client.DescribeCertificates(params);
this.checkRet(res);
return res;
}
async doRequest(action: string, params: any) {
const client = await this.getSslClient();
if (!client[action]) {
throw new Error(`action ${action} not found`);
}
const res = await client[action](params);
this.checkRet(res);
return res;
}
}