Skip to main content
interface Deno.ListenTlsOptions
implements ListenOptions

Properties

optional
key: string

Server private key in PEM format

optional
cert: string

Cert chain in PEM format

optional
deprecated
certFile: string

Path to a file containing a PEM formatted CA certificate. Requires --allow-read.

optional
deprecated
keyFile: string

Server private key file. Requires --allow-read.

optional
transport: "tcp"

Properties

optional
alpnProtocols: string[]

UNSTABLE: new API, yet to be vetted.

Application-Layer Protocol Negotiation (ALPN) protocols to announce to the client. If not specified, no ALPN extension will be included in the TLS handshake.