iya-sts
    Preparing search index...

    Variable certify

    certify: (scopeId: any, useCaseId: any, spec: any) => Promise<any> = certify

    Type Declaration

      • (scopeId: any, useCaseId: any, spec: any): Promise<any>
      • Certifies one key pair from a use case's Issuing CA and records the certificate in the slot the spec names.

        The caller keeps the key. A branch that no longer chains to the Root is repaired first (unless spec.repairBranch is false). Answers rather than throws when there is no Issuing CA.

        Parameters

        • scopeId: any

          a realm id or PROCESS_SCOPE

        • useCaseId: any

          the use case

        • spec: any

          the slot, publicKeyPem, and optionally alg, kid, label, commonName, keyUsage, extensions, days and the pinned material

        Returns Promise<any>

        a promise of { ok: true, certificate, record } or { ok: false, errors }