Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

Deno.connectTls

UNSTABLE New API, yet to be vetted.

Create a TLS connection with an attached client certificate.

const conn = await Deno.connectTls({
  hostname: "deno.land",
  port: 443,
  certChain: "---- BEGIN CERTIFICATE ----\n ...",
  privateKey: "---- BEGIN PRIVATE KEY ----\n ...",
});

Requires allow-net permission.

function connectTls(options: ConnectTlsOptions): Promise<TlsConn>;
§
connectTls(options: ConnectTlsOptions): Promise<TlsConn>
[src]

§Parameters

§Return Type