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