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

TlsConfigCaCert

import type { TlsConfigCaCert } from "https://googleapis.deno.dev/v1/ces:v1.ts";

The CA certificate.

interface TlsConfigCaCert {
cert?: Uint8Array;
displayName?: string;
}

§Properties

§
cert?: Uint8Array
[src]

Required. The allowed custom CA certificates (in DER format) for HTTPS verification. This overrides the default SSL trust store. If this is empty or unspecified, CES will use Google's default trust store to verify certificates. N.B. Make sure the HTTPS server certificates are signed with "subject alt name". For instance a certificate can be self-signed using the following command, openssl x509 -req -days 200 -in example.com.csr
-signkey example.com.key \ -out example.com.crt \ -extfile <(printf "\nsubjectAltName='DNS:www.example.com'")

§
displayName?: string
[src]

Required. The name of the allowed custom CA certificates. This can be used to disambiguate the custom CA certificates.