checkCertificateRevocation
Evaluates all provided CRL and OCSP evidence to determine the certificate's revocation status. Returns the first revoked if any, else the first good, else indeterminate with diagnostic details about each indeterminate evidence.
ts
function checkCertificateRevocation(
input: CheckCertificateRevocationInput,
): Promise<CheckCertificateRevocationResult>Parameters
Examples
ts
import { checkCertificateRevocation } from 'micro509';
const result = await checkCertificateRevocation({
certificate: leafPem,
issuerCertificate: caPem,
evidence: [{ kind: 'crl', crl: crlPem }],
});
if (result.ok && result.value.status === 'revoked') {
console.log('revoked at', result.value.revokedAt);
}