UNPKG

480 BTypeScriptView Raw
1/// <reference types="node" />
2import { SecureServerOptions } from 'http2';
3export interface KeyCertPair {
4 private_key: Buffer;
5 cert_chain: Buffer;
6}
7export 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}