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;
}
-
Parameters
- certificatePem: any
- privateKeyPem: any
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
Checks that a PEM certificate chain and a PEM private key are a pair a TLS client can present.