iya-sts
    Preparing search index...

    Variable decryptionKeyPairProblem

    decryptionKeyPairProblem: (
        certificatePem: any,
        privateKeyPem: any,
    ) =>
        | { ok: boolean; problem: any; why: any }
        | {
            certificatePem: string;
            keyDetail: string;
            keyType: string;
            ok: boolean;
        } = decryptionKeyPairProblem

    Type Declaration

      • (
            certificatePem: any,
            privateKeyPem: any,
        ):
            | { ok: boolean; problem: any; why: any }
            | {
                certificatePem: string;
                keyDetail: string;
                keyType: string;
                ok: boolean;
            }
      • Checks that a certificate and a private key are one key pair this service can decrypt an XML Encryption key with: one PEM certificate, an unencrypted PEM private key that is its private half, RSA of at least 2048 bits or EC on P-256, P-384 or P-521, a keyUsage that permits it, and a validity that has not ended. Never throws.

        Parameters

        • certificatePem: any

          the certificate

        • privateKeyPem: any

          the private key

        Returns
            | { ok: boolean; problem: any; why: any }
            | {
                certificatePem: string;
                keyDetail: string;
                keyType: string;
                ok: boolean;
            }

        { ok: true, keyType, keyDetail, certificatePem }, or { ok: false, problem, why } where problem is certificate, key, mismatch, algorithm, usage or expired