Skip to main content

Interface: TLSListenOptions

Extends

Properties

alpn?

optional alpn: string[]

ALPN protocol list to offer.


backlog?

optional backlog: number

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

Inherited from

ListenOptions.ipv6Only


key

key: string

PEM-encoded server private key. Required.


reuseAddr?

optional reuseAddr: boolean

Inherited from

ListenOptions.reuseAddr


verifyPeer?

optional verifyPeer: boolean

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