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

TlsOptions

import type { TlsOptions } from "https://raw.githubusercontent.com/nats-io/nats.deno/v1.27.0/nats-base-client/internal_mod.ts";

TlsOptions that can be specified to a client. Note that the options are typically runtime specific, so some clients won't support them at all. In other cases they will match to the runtime's TLS options.

If no options are specified, but the argument for TlsOptions is an object, the client is requesting to only use connections that are secured by TLS.

interface TlsOptions {
ca?: string;
caFile?: string;
cert?: string;
certFile?: string;
handshakeFirst?: boolean;
key?: string;
keyFile?: string;
}

§Properties

§
ca?: string
[src]
§
caFile?: string
[src]
§
cert?: string
[src]
§
certFile?: string
[src]
§
handshakeFirst?: boolean
[src]

handshakeFirst option requires the server to be configured with handshakeFirst: true.

§
key?: string
[src]
§
keyFile?: string
[src]