mirror of
https://github.com/certd/certd.git
synced 2026-07-08 13:47:36 +08:00
perf: 查看证书增加证书详情显示,包括域名,过期时间,颁发机构,指纹等
This commit is contained in:
@@ -42,7 +42,14 @@ export class CertController extends BaseController {
|
||||
}
|
||||
}
|
||||
const privateVars = await this.storeService.getPipelinePrivateVars(id);
|
||||
return this.ok(privateVars.cert);
|
||||
|
||||
const certInfo = privateVars.cert;
|
||||
if (certInfo?.crt) {
|
||||
const certReader = new CertReader(certInfo);
|
||||
certInfo.detail = certReader.detail
|
||||
}
|
||||
|
||||
return this.ok(certInfo);
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user