Skip to content

Commit

Permalink
Fix certificate props
Browse files Browse the repository at this point in the history
  • Loading branch information
aleksandr-slobodian committed Dec 5, 2024
1 parent 8953b5f commit c5741f8
Showing 1 changed file with 9 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -46,13 +46,20 @@ export function useCertificateViewerDialog(
if (chain.length > 1) {
currentCertificates = chain.map((chainItem) => {
const cert = new X509Certificate(chainItem.value);

return {
...cert,
raw: cert.rawData,
subjectName: cert.subject,
subject: getCertificateSubject(cert.subject),
type: "x509",
} as unknown as CertificateProps;
index: cert.serialNumber,
issuerName: cert.issuer,
notBefore: cert.notBefore,
notAfter: cert.notAfter,
serialNumber: cert.serialNumber,
publicKey: cert.publicKey as unknown as CryptoKey,
providerID: localProvider.id,
};
});
}
}
Expand Down

0 comments on commit c5741f8

Please sign in to comment.