Usage in Deno
import { type CommonConnectionOptions } from "node:tls";
secureContext: SecureContext | undefined
An optional TLS context object from tls.createSecureContext()
enableTrace: boolean | undefined
When enabled, TLS packet trace information is written to stderr
. This can be
used to debug TLS connection problems.
requestCert: boolean | undefined
If true the server will request a certificate from clients that connect and attempt to verify that certificate. Defaults to false.
ALPNProtocols: string[]
| Uint8Array[]
| Uint8Array
| undefined
An array of strings or a Buffer naming possible ALPN protocols. (Protocols should be ordered by their priority.)
SNICallback: ((servername: string,cb: (err: Error | null,ctx?: SecureContext,) => void,) => void) | undefined
SNICallback(servername, cb)
rejectUnauthorized: boolean | undefined
If true the server will reject any connection which is not authorized with the list of supplied CAs. This option only has an effect if requestCert is true.