1 | /// <reference types="node" />
|
2 | /// <reference types="node" />
|
3 | import { SecureServerOptions } from 'http2';
|
4 | export interface KeyCertPair {
|
5 | private_key: Buffer;
|
6 | cert_chain: Buffer;
|
7 | }
|
8 | export declare abstract class ServerCredentials {
|
9 | abstract _isSecure(): boolean;
|
10 | abstract _getSettings(): SecureServerOptions | null;
|
11 | static createInsecure(): ServerCredentials;
|
12 | static createSsl(rootCerts: Buffer | null, keyCertPairs: KeyCertPair[], checkClientCertificate?: boolean): ServerCredentials;
|
13 | }
|