Interface: TLSServerSocketOptions
Options for creating a TLS server socket.
Properties
alpn?
optionalalpn?:string[]
ALPN protocol list to offer.
backlog?
optionalbacklog?:number
ca?
optionalca?:string
PEM-encoded CA certificate(s) for client certificate verification (mutual TLS).
cert
cert:
string
PEM-encoded server certificate. Required.
ipv6Only?
optionalipv6Only?:boolean
key
key:
string
PEM-encoded server private key. Required.
localPort?
optionallocalPort?:number
verifyPeer?
optionalverifyPeer?:boolean
Whether to require and verify a client certificate (mutual TLS). Defaults to false.