Files
NapCatQQ/.pnpm-store/v3/files/ef/04eed80c05b74ccf8b91386c29f294f166662b5fbc79fef575659175dc712ee3b989da67648494ef1388fe69273e551e52a3beef73d746ec23377b83cbcb79
T
TanTan e311ca3275
Build NapCat Artifacts / Type Check & Test (push) Waiting to run
docs: 仓库链接指向本镜像仓库
2026-11-13 09:25:58 +08:00

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