Function addTrustedIssuerCertificates

  • Add trusted issuer certificates to storage.

    Issuer certificates are used to verify mDocs when they are added to storage. This function validates the issuer certificate as per the IACA profile defined in ISO/IEC 18013-5:2021, applying the additional constraint of requiring the certificate to be self-signed.

    The function is idempotent, meaning repeated calls to add the same issuer certificates do not result in duplicates. Instead, it returns the IDs of existing certificates stored by the SDK.

    Parameters

    • certificates: readonly string[]

      An array of certificates in PEM-encoded string format OR a Base64-encoded DER string.

    Returns Promise<Result<string[], AddTrustedIssuerCertificatesError>>

    An array of IDs of successfully added certificates.

Generated using TypeDoc