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;
}
-
Parameters
- certificatePem: any
- privateKeyPem: any
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
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.