interface TlsOptions
Usage in Deno
import { type TlsOptions } from "node:tls";
optional
handshakeTimeout: 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
sessionTimeout: 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
ticketKeys: Buffer | undefined
48-bytes of cryptographically strong pseudo-random data.
optional
pskIdentityHint: 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
pskCallback(socket: TLSSocket,identity: string,): DataView
| TypedArray
| null