deno / latest / ~ / deno.listentls.html

Deno.listenTls

Listen announces on the local transport address over TLS (transport layer security).

const lstnr = Deno.listenTls({ port: 443, certFile: "./server.crt", keyFile: "./server.key" });

Requires allow-net permission.


    
function listenTls(options: ListenTlsOptions): TlsListener;
listenTls(options: ListenTlsOptions): TlsListener

Parameters

options: ListenTlsOptions

Return Type

© 2018–2022 the Deno authors
https://doc.deno.land/deno/stable/~/Deno.listenTls