This commit is contained in:
xiaojunnuo
2024-12-17 22:45:14 +08:00
parent 21f50e0b38
commit 0e7578043e
3 changed files with 10 additions and 0 deletions

View File

@@ -25,6 +25,7 @@ export class CertReader {
key: string;
csr: string;
ic: string; //中间证书
one: string; //crt + key 合成一个pem文件
detail: any;
expires: number;
@@ -46,6 +47,12 @@ export class CertReader {
this.cert.oc = this.oc;
}
this.one = certInfo.one;
if (!this.one) {
this.one = this.crt + "\n" + this.key;
this.cert.one = this.one;
}
const { detail, expires } = this.getCrtDetail(this.cert.crt);
this.detail = detail;
this.expires = expires.getTime();