@cto.af/ca - v2.6.1
    Preparing search index...

    Function whileCAtrusted

    • Trust the CA cert that CertificateAuthority generates for all node.js TLS operations, including fetch, but only for the duration of this function call.

      Type Parameters

      • T

      Parameters

      • options: string | CertOptions

        Certificate options.

      • during: () => T

        Callback during which the cert will be valid.

      Returns Promise<Awaited<T>>

      The result of during.