forked from watson/https-pem
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathindex.d.ts
More file actions
35 lines (30 loc) · 857 Bytes
/
Copy pathindex.d.ts
File metadata and controls
35 lines (30 loc) · 857 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
/// <reference types="node" />
import { SelfsignedOptions, CertificateField } from 'selfsigned';
type CertificateAttribute = CertificateField;
type HttpsPEMGenerateOpts = {
attr?: CertificateAttribute[];
opts?: SelfsignedOptions;
};
type HttpsPEMGenerateResult = {
key: string;
cert: string;
};
type HttpsPEM = {
key: string | null;
cert: string | null;
generate(config?: HttpsPEMGenerateOpts): Promise<HttpsPEMGenerateResult>;
generate(
config: HttpsPEMGenerateOpts | null,
done: (err: Error | null, result: HttpsPEMGenerateResult) => void
): void;
};
export default HttpsPEM;
export declare const key: HttpsPEM['key'];
export declare const cert: HttpsPEM['cert'];
export declare const generate: HttpsPEM['generate'];
export {
SelfsignedOptions,
CertificateAttribute,
HttpsPEMGenerateResult,
HttpsPEMGenerateOpts,
};