Optional
allow Half Open allowHalfOpen ?: boolean
Optional
ALPNCallback ALPNCallback ?: ( arg : { protocols : string [] ; servername : string } ) => string
Optional
ALPNProtocols ALPNProtocols ?: string [] | Uint8Array | Uint8Array []
Optional
ca ca ?: string | Buffer | (string | Buffer )[]
Optional
cert cert ?: string | Buffer | (string | Buffer )[]
Optional
ciphers ciphers ?: string
Optional
client Cert Engine clientCertEngine ?: string
Optional
connections Checking Interval connectionsCheckingInterval ?: number
Optional
crl crl ?: string | Buffer | (string | Buffer )[]
Optional
dhparam dhparam ?: string | Buffer
Optional
ecdh Curve ecdhCurve ?: string
Optional
enable Trace enableTrace ?: boolean
Optional
handshake Timeout handshakeTimeout ?: number
Optional
high Water Mark highWaterMark ?: number
Optional
honor Cipher Order honorCipherOrder ?: boolean
Optional
Incoming Message IncomingMessage ?: typeof IncomingMessage
Optional
insecureHTTPParser insecureHTTPParser ?: boolean
Optional
join Duplicate Headers joinDuplicateHeaders ?: boolean
Optional
keep Alive keepAlive ?: boolean
Optional
keep Alive Initial Delay keepAliveInitialDelay ?: number
Optional
keep Alive Timeout keepAliveTimeout ?: number
Optional
key key ?: string | Buffer | (string | Buffer | KeyObject )[]
Optional
max Header Size maxHeaderSize ?: number
Optional
max Version maxVersion ?: SecureVersion
Optional
min Version minVersion ?: SecureVersion
Optional
no Delay noDelay ?: boolean
Optional
passphrase passphrase ?: string
Optional
pause On Connect pauseOnConnect ?: boolean
Optional
pfx pfx ?: string | Buffer | (string | Buffer | PxfObject )[]
Optional
port port ?: string | number
Optional
private Key Engine privateKeyEngine ?: string
Optional
private Key Identifier privateKeyIdentifier ?: string
Optional
psk Callback pskCallback ?: ( socket : TLSSocket , identity : string ) => DataView | TypedArray
Type declaration ( socket : TLSSocket , identity : string ) : DataView | TypedArray Parameters socket : TLSSocket identity : string Returns DataView | TypedArray pre-shared key that must either be
a buffer or null
to stop the negotiation process. Returned PSK must be
compatible with the selected cipher's digest.
When negotiating TLS-PSK (pre-shared keys), this function is called
with the identity provided by the client.
If the return value is null
the negotiation process will stop and an
"unknown_psk_identity" alert message will be sent to the other party.
If the server wishes to hide the fact that the PSK identity was not known,
the callback must provide some random data as psk
to make the connection
fail with "decrypt_error" before negotiation is finished.
PSK ciphers are disabled by default, and using TLS-PSK thus
requires explicitly specifying a cipher suite with the ciphers
option.
More information can be found in the RFC 4279.
Optional
psk Identity Hint pskIdentityHint ?: string
Optional
reject Unauthorized rejectUnauthorized ?: boolean
Optional
request Cert requestCert ?: boolean
Optional
request Timeout requestTimeout ?: number
Optional
secure Context secureContext ?: SecureContext
Optional
secure Options secureOptions ?: number
Optional
secure Protocol secureProtocol ?: string
Optional
Server Response ServerResponse ?: typeof ServerResponse
Optional
session Id Context sessionIdContext ?: string
Optional
session Timeout sessionTimeout ?: number
Optional
sigalgs sigalgs ?: string
Optional
SNICallback SNICallback ?: ( servername : string , cb : ( err : Error , ctx ?: SecureContext ) => void , ) => void
Optional
ticket Keys ticketKeys ?: Buffer
Optional
unique Headers uniqueHeaders ?: (string | string [] )[]
webhooks Secret Token webhooksSecretToken : string
identity parameter sent from the client.