iya-sts
    Preparing search index...

    Variable tlsClientKeyPairProblem

    tlsClientKeyPairProblem: (
        certificatePem: any,
        privateKeyPem: any,
    ) =>
        | { ok: boolean; problem: any; why: any }
        | {
            certificatePem: string;
            keyType: string;
            notAfter: number;
            ok: boolean;
            subject: string;
        } = tlsClientKeyPairProblem

    Type Declaration

      • (
            certificatePem: any,
            privateKeyPem: any,
        ):
            | { ok: boolean; problem: any; why: any }
            | {
                certificatePem: string;
                keyType: string;
                notAfter: number;
                ok: boolean;
                subject: string;
            }
      • Checks that a PEM certificate chain and a PEM private key are a pair a TLS client can present.

        Parameters

        • certificatePem: any

          the leaf first, then any intermediates

        • privateKeyPem: any

          the leaf's private key, unencrypted

        Returns
            | { ok: boolean; problem: any; why: any }
            | {
                certificatePem: string;
                keyType: string;
                notAfter: number;
                ok: boolean;
                subject: string;
            }

        { ok: true, keyType, notAfter, subject, certificatePem }, or { ok: false, problem, why } where problem is certificate, key or mismatch