Initial commit: CertTools SSL certificate toolkit
Made-with: Cursor
This commit is contained in:
58
client/src/types.ts
Normal file
58
client/src/types.ts
Normal file
@@ -0,0 +1,58 @@
|
||||
export interface CertificateInfo {
|
||||
subject: Record<string, string>;
|
||||
issuer: Record<string, string>;
|
||||
serialNumber: string;
|
||||
validFrom: string;
|
||||
validTo: string;
|
||||
daysRemaining: number;
|
||||
isExpired: boolean;
|
||||
sans: string[];
|
||||
fingerprints: {
|
||||
sha1: string;
|
||||
sha256: string;
|
||||
};
|
||||
publicKey: {
|
||||
algorithm: string;
|
||||
bits: number;
|
||||
};
|
||||
signatureAlgorithm: string;
|
||||
isSelfSigned: boolean;
|
||||
version: number;
|
||||
keyUsage: string[];
|
||||
extKeyUsage: string[];
|
||||
pem: string;
|
||||
isCA: boolean;
|
||||
}
|
||||
|
||||
export interface PfxResult {
|
||||
certificates: CertificateInfo[];
|
||||
privateKeyPem: string | null;
|
||||
}
|
||||
|
||||
export interface PemDecodeResult {
|
||||
certificates: CertificateInfo[];
|
||||
}
|
||||
|
||||
export interface MatchResult {
|
||||
match: boolean;
|
||||
certModulus: string;
|
||||
keyModulus: string;
|
||||
}
|
||||
|
||||
export interface CsrInfo {
|
||||
subject: Record<string, string>;
|
||||
publicKey: {
|
||||
algorithm: string;
|
||||
bits: number;
|
||||
};
|
||||
sans: string[];
|
||||
isSignatureValid: boolean;
|
||||
pem: string;
|
||||
}
|
||||
|
||||
export interface ChainVerifyResult {
|
||||
certificates: CertificateInfo[];
|
||||
isValid: boolean;
|
||||
errors: string[];
|
||||
chainOrder: string[];
|
||||
}
|
||||
Reference in New Issue
Block a user