fix: 修复商用证书上传第二次运行无法使用pfx格式证书的bug

This commit is contained in:
xiaojunnuo
2025-07-28 16:18:49 +08:00
parent b9f3dc65e0
commit 251dd1fe45
3 changed files with 20 additions and 11 deletions
@@ -130,15 +130,6 @@ export abstract class CertApplyBasePlugin extends CertApplyBaseConvertPlugin {
return null;
}
async readLastCert(): Promise<CertReader | undefined> {
const cert = this.lastStatus?.status?.output?.cert;
if (cert == null) {
this.logger.info("没有找到上次的证书");
return undefined;
}
return new CertReader(cert);
}
/**
* 检查是否过期,默认提前35天
* @param expires