Interface NodeTlsConnectOptions

TLS options for connecting to an endpoint

interface NodeTlsConnectOptions {
    address: string;
    alpnProtocols?: string[];
    caCerts?: string[];
    extraOptions?: ConnectionOptions;
    port: number;
    sni?: string;
}

Hierarchy (View Summary)

Properties

address: string

address of the endpoint

alpnProtocols?: string[]

List of ALPN protocols to accept/offer

caCerts?: string[]

List of CA certificates to use. Will replace whatever is in the default platform CA store.

extraOptions?: ConnectionOptions
port: number

port of the endpoint

sni?: string

Hostname to use for SNI