mirror of
https://github.com/certd/certd.git
synced 2026-04-16 14:00:51 +08:00
chore:
This commit is contained in:
@@ -65,6 +65,13 @@ export class CertReader {
|
||||
return { detail, expires };
|
||||
}
|
||||
|
||||
getAllDomains() {
|
||||
const { detail } = this.getCrtDetail();
|
||||
const domains = [detail.domains.commonName];
|
||||
domains.push(...detail.domains.altNames);
|
||||
return domains;
|
||||
}
|
||||
|
||||
saveToFile(type: "crt" | "key" | "pfx" | "der" | "ic", filepath?: string) {
|
||||
if (!this.cert[type]) {
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user