-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.d.ts
22 lines (18 loc) · 846 Bytes
/
index.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
export type PemKeyType = 'PUBLIC' | 'PRIVATE'
export type PemX509Type = 'CERTIFICATE' | 'REQUEST' | 'CRL'
export interface PemMatch {
label: string;
type : PemKeyType | PemX509Type;
}
export function matchKey(pem: string): PemKeyMatch;
export declare function matchKeyBegin(pem: string): PemKeyMatch;
export declare function matchKeyEnd(pem: string): PemKeyMatch;
export function matchX509(pem: string): PemMatch;
export declare function matchX509Begin(pem: string): PemMatch;
export declare function matchX509End(pem: string): PemMatch;
export function isPrivateKey(pem: string): string;
export function isPublicKey(pem: string): string;
export function isX509Cert(pem: string): string;
export function isX509Request(pem: string): string;
export function isX509CRL(pem: string): string;
export function trimLines(input: string): string;