Skip to main content

Interface: TLSListenOptions

Extends​

Properties​

alpn?​

optional alpn?: string[]

ALPN protocol list to offer.


backlog?​

optional backlog?: number

Maximum length of the queue of pending connections.

Inherited from​

ListenOptions.backlog


ca?​

optional ca?: string

PEM-encoded CA certificate(s) for client certificate verification (mutual TLS).


cert​

cert: string

PEM-encoded server certificate. Required.


ipv6Only?​

optional ipv6Only?: boolean

Restrict an AF_INET6 socket to IPv6 only.

Inherited from​

ListenOptions.ipv6Only


key​

key: string

PEM-encoded server private key. Required.


reuseAddr?​

optional reuseAddr?: boolean

Allow reuse of a local address that is in a TIME_WAIT state (SO_REUSEADDR).

Inherited from​

ListenOptions.reuseAddr


verifyPeer?​

optional verifyPeer?: boolean

Whether to require and verify a client certificate (mutual TLS). Defaults to false.