Skip to main content

Interface: TLSConnectOptions

Extends

Properties

alpn?

optional alpn?: string[]

ALPN protocol list to negotiate.


bindAddr?

optional bindAddr?: object

ip

ip: string

port

port: number

Inherited from

ConnectOptions.bindAddr


ca?

optional ca?: string

PEM-encoded CA certificate(s) to trust. Defaults to the embedded Mozilla CA bundle.


cert?

optional cert?: string

PEM-encoded client certificate for mutual TLS.


dnsQueryType?

optional dnsQueryType?: "ipv4" | "ipv6"

Inherited from

ConnectOptions.dnsQueryType


ipv6Only?

optional ipv6Only?: boolean

Inherited from

ConnectOptions.ipv6Only


keepAliveDelay?

optional keepAliveDelay?: number

Inherited from

ConnectOptions.keepAliveDelay


key?

optional key?: string

PEM-encoded client private key for mutual TLS.


noDelay?

optional noDelay?: boolean

Inherited from

ConnectOptions.noDelay


sni?

optional sni?: string

Server Name Indication hostname. Defaults to the host argument.


verifyPeer?

optional verifyPeer?: boolean

Whether to verify the peer's certificate. Defaults to true for clients, false for servers.