Interface TlsConnectOptions

TLS options for connecting to an endpoint

interface TlsConnectOptions {
    address: string;
    alpnProtocols?: string[];
    caCerts?: string[];
    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.

port: number

port of the endpoint

sni?: string

Hostname to use for SNI