Interface: TLSSocketOptions
Options for creating a TLS client socket.
Properties
alpn?
optionalalpn:string[]
ALPN protocol list to negotiate.
ca?
optionalca:string
PEM-encoded CA certificate(s) to trust. Defaults to the embedded Mozilla CA bundle.
cert?
optionalcert:string
PEM-encoded client certificate for mutual TLS.
dnsQueryType?
optionaldnsQueryType:"ipv4"|"ipv6"
keepAliveDelay?
optionalkeepAliveDelay:number
key?
optionalkey:string
PEM-encoded client private key for mutual TLS.
noDelay?
optionalnoDelay:boolean
sni?
optionalsni:string
Server Name Indication hostname. Defaults to remoteAddress.
verifyPeer?
optionalverifyPeer:boolean
Whether to verify the peer's certificate. Defaults to true for clients, false for servers.