Build NapCat Artifacts / Windows Loader Test (push) Canceled after 0s
Build NapCat Artifacts / Type Check & Test (push) Canceled after 0s
Build NapCat Artifacts / Build NapCat.Framework (push) Canceled after 0s
Build NapCat Artifacts / Build NapCat.Shell (push) Canceled after 0s
33 lines
792 B
Plaintext
33 lines
792 B
Plaintext
import { Certificate } from '@peculiar/asn1-x509';
|
|
import type { Uint8Array_ } from '../types/index.js';
|
|
export type CertificateInfo = {
|
|
issuer: Issuer;
|
|
subject: Subject;
|
|
version: number;
|
|
basicConstraintsCA: boolean;
|
|
notBefore: Date;
|
|
notAfter: Date;
|
|
parsedCertificate: Certificate;
|
|
};
|
|
type Issuer = {
|
|
C?: string;
|
|
O?: string;
|
|
OU?: string;
|
|
CN?: string;
|
|
combined: string;
|
|
};
|
|
type Subject = {
|
|
C?: string;
|
|
O?: string;
|
|
OU?: string;
|
|
CN?: string;
|
|
combined: string;
|
|
};
|
|
/**
|
|
* Extract PEM certificate info
|
|
*
|
|
* @param pemCertificate Result from call to `convertASN1toPEM(x5c[0])`
|
|
*/
|
|
export declare function getCertificateInfo(leafCertBuffer: Uint8Array_): CertificateInfo;
|
|
export {};
|
|
//# sourceMappingURL=getCertificateInfo.d.ts.map |