Skip to main content

TlsOptions

interface TlsOptions

Properties Jump to heading

optional
Jump to headinghandshakeTimeout: number | undefined

Abort the connection if the SSL/TLS handshake does not finish in the specified number of milliseconds. A 'tlsClientError' is emitted on the tls.Server object whenever a handshake times out. Default: 120000 (120 seconds).

optional
Jump to headingsessionTimeout: number | undefined

The number of seconds after which a TLS session created by the server will no longer be resumable. See Session Resumption for more information. Default: 300.

optional
Jump to headingticketKeys: Buffer | undefined

48-bytes of cryptographically strong pseudo-random data.

optional
Jump to headingpskIdentityHint: string | undefined

hint to send to a client to help with selecting the identity during TLS-PSK negotiation. Will be ignored in TLS 1.3. Upon failing to set pskIdentityHint tlsClientError will be emitted with ERR_TLS_PSK_SET_IDENTIY_HINT_FAILED code.

optional
Jump to headingpskCallback(
socket: TLSSocket,
identity: string,
):
DataView
| TypedArray
| null
Back to top