import { Deno } from "https://deno.land/x/deno@v1.36.0/cli/tsc/dts/lib.deno.unstable.d.ts";
const { connectTls } = Deno;
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.
Parameters
options: ConnectTlsOptions