Interface NodeTlsListenOptions

TLS options for listening on an endpoint

interface NodeTlsListenOptions {
    address: string;
    alpnProtocols?: string[];
    caCerts?: string[];
    cert?: string;
    extraOptions?: SecureContextOptions;
    hosts?: Omit<NodeTlsListenOptions, "address" | "port" | "hosts">[];
    key?: 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.

cert?: string
extraOptions?: SecureContextOptions
hosts?: Omit<NodeTlsListenOptions, "address" | "port" | "hosts">[]
key?: string
port: number

port of the endpoint

sni?: string

Hostname to use for SNI