micro509 / revocation
revocation
Canonical revocation domain surface. Owns CRL, OCSP, and revocation orchestration APIs.
Interfaces
CertificateRevocationListMaterial
Defined in: src/revocation/crl.ts:151
Encoded CRL in multiple serialisation formats, returned by createCertificateRevocationList.
Properties
base64
readonlybase64:string
Defined in: src/revocation/crl.ts:157
Base64-encoded DER (no PEM armour).
der
readonlyder:Uint8Array
Defined in: src/revocation/crl.ts:153
Raw DER bytes of the signed CRL.
pem
readonlypem:string
Defined in: src/revocation/crl.ts:155
PEM-encoded CRL (-----BEGIN X509 CRL-----).
CertificateRevocationStatus
Defined in: src/revocation/chain.ts:147
Revocation evaluation result for a single certificate.
One entry per certificate in CheckChainRevocationValue.certificates. The trust anchor is excluded (never checked for revocation).
Properties
certificate
readonlycertificate:ParsedCertificate
Defined in: src/revocation/chain.ts:149
The certificate that was evaluated.
indeterminateReasons?
readonlyoptionalindeterminateReasons?: readonlyRevocationIndeterminateReason[]
Defined in: src/revocation/chain.ts:161
Why status could not be determined. Present when status is 'indeterminate'.
revocationInfo?
readonlyoptionalrevocationInfo?:object
Defined in: src/revocation/chain.ts:163
Revocation details. Present when status is 'revoked'.
date
readonlydate:Date
When the certificate was revoked.
reason?
readonlyoptionalreason?:RevocationReason
RFC 5280 CRLReason code, if provided by the CRL/OCSP response.
source?
readonlyoptionalsource?:RevocationSource
Defined in: src/revocation/chain.ts:159
Evidence source when status is 'good' or 'revoked'.
status
readonlystatus:"good"|"revoked"|"indeterminate"
Defined in: src/revocation/chain.ts:157
Revocation status determination.
'good': evidence confirms certificate is not revoked'revoked': evidence confirms certificate is revoked'indeterminate': could not determine status (seeindeterminateReasons)
CheckCertificateRevocationAgainstCrlFailure
Defined in: src/revocation/crl.ts:357
Failure detail for checkCertificateRevocationAgainstCrl.
Extends
Micro509Error<CheckCertificateRevocationAgainstCrlErrorCode,CheckCertificateRevocationAgainstCrlFailureDetails>
Properties
code
readonlycode:CheckCertificateRevocationAgainstCrlErrorCode
Defined in: src/result/result.ts:59
Machine-readable failure reason (e.g. 'malformed', 'expired').
Inherited from
details?
readonlyoptionaldetails?:CheckCertificateRevocationAgainstCrlFailureDetails
Defined in: src/result/result.ts:63
Optional structured context for the failure.
Inherited from
message
readonlymessage:string
Defined in: src/result/result.ts:61
Human-readable diagnostic message.
Inherited from
ok
readonlyok:false
Defined in: src/revocation/crl.ts:363
Always false for failures.
CheckCertificateRevocationAgainstCrlFailureDetails
Defined in: src/revocation/crl.ts:351
Structured details attached to a CheckCertificateRevocationAgainstCrlFailure.
Properties
reason?
readonlyoptionalreason?:CrlApplicabilityFailureReason
Defined in: src/revocation/crl.ts:353
Why the CRL was non-applicable, when the error code is non_applicable.
CheckCertificateRevocationAgainstCrlGoodValue
Defined in: src/revocation/crl.ts:367
Success value when the certificate is not found in the CRL.
Properties
crl
readonlycrl:ParsedCertificateRevocationList
Defined in: src/revocation/crl.ts:371
The validated CRL that was checked.
status
readonlystatus:"good"
Defined in: src/revocation/crl.ts:369
Certificate is not revoked.
CheckCertificateRevocationAgainstCrlInput
Defined in: src/revocation/crl.ts:304
Input for checkCertificateRevocationAgainstCrl.
Properties
at?
readonlyoptionalat?:Date
Defined in: src/revocation/crl.ts:314
Evaluation time. Defaults to new Date().
certificate
readonlycertificate:CrlCertificateSource
Defined in: src/revocation/crl.ts:306
Certificate whose revocation status to check.
clockSkewMs?
readonlyoptionalclockSkewMs?:number
Defined in: src/revocation/crl.ts:316
Clock-skew tolerance in milliseconds for freshness checks.
crl
readonlycrl:CrlSource
Defined in: src/revocation/crl.ts:310
Complete (base) CRL to check against.
deltaCrl?
readonlyoptionaldeltaCrl?:CrlSource
Defined in: src/revocation/crl.ts:312
Optional delta CRL for more recent revocation information.
issuerCertificate
readonlyissuerCertificate:CrlCertificateSource
Defined in: src/revocation/crl.ts:308
Issuer of certificate — also expected signer of the CRL.
CheckCertificateRevocationAgainstCrlRevokedValue
Defined in: src/revocation/crl.ts:375
Success value when the certificate is found as revoked in the CRL.
Properties
crl
readonlycrl:ParsedCertificateRevocationList
Defined in: src/revocation/crl.ts:379
The validated CRL that contained the revocation entry.
reasonCode?
readonlyoptionalreasonCode?:RevocationReason
Defined in: src/revocation/crl.ts:383
CRLReason from the entry, if present.
revocationDate
readonlyrevocationDate:Date
Defined in: src/revocation/crl.ts:381
When the CA declared this certificate revoked.
status
readonlystatus:"revoked"
Defined in: src/revocation/crl.ts:377
Certificate is revoked.
CheckCertificateRevocationFailureDetails
Defined in: src/revocation/revocation.ts:131
Diagnostic details attached to an unknown revocation result.
Properties
checkedSources
readonlycheckedSources: readonlyRevocationEvidenceKind[]
Defined in: src/revocation/revocation.ts:133
Which evidence kinds were attempted ('crl', 'ocsp', or both).
indeterminateEvidence
readonlyindeterminateEvidence: readonlyRevocationIndeterminateEvidence[]
Defined in: src/revocation/revocation.ts:135
Per-evidence explanations of why no definitive answer was reached.
CheckCertificateRevocationInput
Defined in: src/revocation/revocation.ts:83
Input for checkCertificateRevocation.
Properties
at?
readonlyoptionalat?:Date
Defined in: src/revocation/revocation.ts:91
Evaluation time. Defaults to new Date().
certificate
readonlycertificate:RevocationCertificateSource
Defined in: src/revocation/revocation.ts:85
Certificate whose revocation status to determine.
clockSkewMs?
readonlyoptionalclockSkewMs?:number
Defined in: src/revocation/revocation.ts:93
Clock-skew tolerance in milliseconds.
evidence?
readonlyoptionalevidence?: readonlyRevocationEvidenceInput[]
Defined in: src/revocation/revocation.ts:89
CRL and/or OCSP evidence to evaluate. Returns unknown if empty.
issuerCertificate
readonlyissuerCertificate:RevocationCertificateSource
Defined in: src/revocation/revocation.ts:87
Issuer of certificate.
CheckChainRevocationInput
Defined in: src/revocation/chain.ts:69
Input for checkChainRevocation.
Properties
at?
readonlyoptionalat?:Date
Defined in: src/revocation/chain.ts:79
Evaluation time. Defaults to new Date().
chain
readonlychain: readonlyParsedCertificate<Record<never,never>>[]
Defined in: src/revocation/chain.ts:71
Validated certificate chain (leaf first, root last).
crls?
readonlyoptionalcrls?: readonlyCrlSource[]
Defined in: src/revocation/chain.ts:73
CRLs to evaluate.
extraCertificates?
readonlyoptionalextraCertificates?: readonlyCertificateSource[]
Defined in: src/revocation/chain.ts:77
Extra certs for indirect CRL issuers / delegated OCSP responders.
ocspResponses?
readonlyoptionalocspResponses?: readonlyOcspResponseSource[]
Defined in: src/revocation/chain.ts:75
OCSP responses to evaluate.
policy?
readonlyoptionalpolicy?:RevocationPolicy
Defined in: src/revocation/chain.ts:81
Revocation policy.
CheckChainRevocationValue
Defined in: src/revocation/chain.ts:196
Detailed revocation check results.
Returned as CheckChainRevocationResult.value from checkChainRevocation. Contains both the policy decision and detailed per-certificate findings for debugging.
Properties
certificates
readonlycertificates: readonlyCertificateRevocationStatus[]
Defined in: src/revocation/chain.ts:212
Per-certificate evaluation results. See CertificateRevocationStatus.
decision
readonlydecision:"allow"|"deny"
Defined in: src/revocation/chain.ts:203
Final policy decision based on RevocationPolicy.
'allow': chain passes revocation check'deny': chain fails (revoked certificate or hard-fail on indeterminate)
executionErrors?
readonlyoptionalexecutionErrors?: readonlyRevocationExecutionError[]
Defined in: src/revocation/chain.ts:214
Evidence that could not be processed. See RevocationExecutionError.
summary
readonlysummary:object
Defined in: src/revocation/chain.ts:205
Quick-access summary of problematic certificates.
indeterminateCertificates
readonlyindeterminateCertificates: readonlyParsedCertificate<Record<never,never>>[]
Certificates whose status could not be determined.
revokedCertificates
readonlyrevokedCertificates: readonlyParsedCertificate<Record<never,never>>[]
Certificates confirmed as revoked.
ConfiguredOcspResponder
Defined in: src/revocation/revocation.ts:32
A manually-configured OCSP responder endpoint.
Properties
responderCertificate?
readonlyoptionalresponderCertificate?:ConfiguredOcspResponderCertificate
Defined in: src/revocation/revocation.ts:36
Known responder certificate — skips embedded-certificate discovery.
uri
readonlyuri:string
Defined in: src/revocation/revocation.ts:34
OCSP responder URI (typically http://...).
CreateCertificateRevocationListInput
Defined in: src/revocation/crl.ts:125
Input for createCertificateRevocationList.
Properties
baseCrlNumber?
readonlyoptionalbaseCrlNumber?:number
Defined in: src/revocation/crl.ts:141
If set, marks this CRL as a delta CRL referencing the given base CRL number.
crlNumber?
readonlyoptionalcrlNumber?:number
Defined in: src/revocation/crl.ts:139
Monotonically-increasing CRL sequence number (CRLNumber extension).
freshestCrlDistributionPoints?
readonlyoptionalfreshestCrlDistributionPoints?: readonlyDistributionPoint[]
Defined in: src/revocation/crl.ts:145
Freshest CRL distribution points — tells relying parties where to find delta CRLs.
issuer
readonlyissuer:NameInput
Defined in: src/revocation/crl.ts:127
Distinguished name of the CRL issuer (typically the signing CA).
issuerPublicKey?
readonlyoptionalissuerPublicKey?:CryptoKey
Defined in: src/revocation/crl.ts:131
Issuer public key — used to embed an Authority Key Identifier extension.
issuingDistributionPoint?
readonlyoptionalissuingDistributionPoint?:IssuingDistributionPoint
Defined in: src/revocation/crl.ts:143
Issuing distribution point extension — scopes this CRL to a subset of certificates.
nextUpdate?
readonlyoptionalnextUpdate?:Date
Defined in: src/revocation/crl.ts:135
Planned next issuance. Omit for an open-ended CRL.
revokedCertificates?
readonlyoptionalrevokedCertificates?: readonlyRevokedCertificateInput[]
Defined in: src/revocation/crl.ts:137
Certificates to list as revoked in this CRL.
signerPrivateKey
readonlysignerPrivateKey:CryptoKey
Defined in: src/revocation/crl.ts:129
Private key used to sign the CRL. Algorithm is inferred from the key.
thisUpdate?
readonlyoptionalthisUpdate?:Date
Defined in: src/revocation/crl.ts:133
Issuance timestamp. Defaults to new Date().
CreateOcspRequestInput
Defined in: src/revocation/ocsp.ts:87
Input for createOcspRequest.
Properties
hashAlgorithm?
readonlyoptionalhashAlgorithm?:OcspHashAlgorithm
Defined in: src/revocation/ocsp.ts:91
Hash algorithm for CertID computation. Defaults to 'SHA-1'.
nonce?
readonlyoptionalnonce?:Uint8Array<ArrayBufferLike>
Defined in: src/revocation/ocsp.ts:93
Random nonce for replay protection. Omit to skip the nonce extension.
requests
readonlyrequests: readonlyCreateOcspRequestItemInput[]
Defined in: src/revocation/ocsp.ts:89
One or more certificates to query (batched into a single OCSP request).
CreateOcspRequestItemInput
Defined in: src/revocation/ocsp.ts:77
One certificate whose status to query in an OCSP request. Used as an element of CreateOcspRequestInput.requests.
Extended by
Properties
certificate
readonlycertificate:OcspCertificateSource
Defined in: src/revocation/ocsp.ts:79
Certificate whose revocation status is being queried.
issuerCertificate
readonlyissuerCertificate:OcspCertificateSource
Defined in: src/revocation/ocsp.ts:81
Issuer of certificate — needed to compute the CertID hash.
CreateOcspResponseInput
Defined in: src/revocation/ocsp.ts:236
Input for createOcspResponse.
Properties
hashAlgorithm?
readonlyoptionalhashAlgorithm?:OcspHashAlgorithm
Defined in: src/revocation/ocsp.ts:248
Hash algorithm for CertID computation. Defaults to 'SHA-1'.
includedCertificates?
readonlyoptionalincludedCertificates?: readonlyOcspCertificateSource[]
Defined in: src/revocation/ocsp.ts:250
Extra certificates to embed in the response (e.g. the responder's issuer chain).
nonce?
readonlyoptionalnonce?:Uint8Array<ArrayBufferLike>
Defined in: src/revocation/ocsp.ts:246
Nonce to echo back for replay protection.
producedAt?
readonlyoptionalproducedAt?:Date
Defined in: src/revocation/ocsp.ts:244
Timestamp for the producedAt field. Defaults to new Date().
responses
readonlyresponses: readonlyCreateOcspSingleResponseInput[]
Defined in: src/revocation/ocsp.ts:242
Per-certificate status entries to include in the BasicOCSPResponse.
signerCertificate
readonlysignerCertificate:OcspCertificateSource
Defined in: src/revocation/ocsp.ts:240
Certificate of the OCSP responder — used to build the responder ID (by key hash).
signerPrivateKey
readonlysignerPrivateKey:CryptoKey
Defined in: src/revocation/ocsp.ts:238
Private key used to sign the response. Algorithm is inferred from the key.
CreateOcspSingleResponseInput
Defined in: src/revocation/ocsp.ts:220
One certificate's status entry for CreateOcspResponseInput.responses. Extends CreateOcspRequestItemInput with status and timing fields.
Extends
Properties
certificate
readonlycertificate:OcspCertificateSource
Defined in: src/revocation/ocsp.ts:79
Certificate whose revocation status is being queried.
Inherited from
CreateOcspRequestItemInput.certificate
certStatus
readonlycertStatus:OcspCertStatus
Defined in: src/revocation/ocsp.ts:222
Status to assert for this certificate.
issuerCertificate
readonlyissuerCertificate:OcspCertificateSource
Defined in: src/revocation/ocsp.ts:81
Issuer of certificate — needed to compute the CertID hash.
Inherited from
CreateOcspRequestItemInput.issuerCertificate
nextUpdate?
readonlyoptionalnextUpdate?:Date
Defined in: src/revocation/ocsp.ts:226
End of the validity window. Omit for open-ended assertions.
revocationReasonCode?
readonlyoptionalrevocationReasonCode?:number
Defined in: src/revocation/ocsp.ts:230
CRLReason integer code (only meaningful when certStatus is 'revoked').
revokedAt?
readonlyoptionalrevokedAt?:Date
Defined in: src/revocation/ocsp.ts:228
Revocation time (required when certStatus is 'revoked'). Defaults to thisUpdate.
thisUpdate?
readonlyoptionalthisUpdate?:Date
Defined in: src/revocation/ocsp.ts:224
Start of the validity window for this status assertion. Defaults to new Date().
OcspRequestMaterial
Defined in: src/revocation/ocsp.ts:99
Encoded OCSP request in multiple serialisation formats, returned by createOcspRequest.
Properties
base64
readonlybase64:string
Defined in: src/revocation/ocsp.ts:105
Base64-encoded DER (no PEM armour).
der
readonlyder:Uint8Array
Defined in: src/revocation/ocsp.ts:101
Raw DER bytes.
pem
readonlypem:string
Defined in: src/revocation/ocsp.ts:103
PEM-encoded request (-----BEGIN OCSP REQUEST-----).
OcspResponderCandidate
Defined in: src/revocation/revocation.ts:40
One candidate OCSP responder resolved by resolveOcspResponderCandidates.
Properties
responderCertificate?
readonlyoptionalresponderCertificate?:ConfiguredOcspResponderCertificate
Defined in: src/revocation/revocation.ts:46
Pre-known responder certificate, if available.
source
readonlysource:OcspResponderSource
Defined in: src/revocation/revocation.ts:42
Whether this candidate came from configuration or the certificate's AIA extension.
uri
readonlyuri:string
Defined in: src/revocation/revocation.ts:44
OCSP responder URI.
OcspResponseMaterial
Defined in: src/revocation/ocsp.ts:256
Encoded OCSP response in multiple serialisation formats, returned by createOcspResponse.
Properties
base64
readonlybase64:string
Defined in: src/revocation/ocsp.ts:262
Base64-encoded DER (no PEM armour).
der
readonlyder:Uint8Array
Defined in: src/revocation/ocsp.ts:258
Raw DER bytes.
pem
readonlypem:string
Defined in: src/revocation/ocsp.ts:260
PEM-encoded response (-----BEGIN OCSP RESPONSE-----).
ParsedCertificateRevocationList
Defined in: src/revocation/crl.ts:180
Decoded X.509 CRL, returned by parseCertificateRevocationListDer and parseCertificateRevocationListPem.
Properties
authorityKeyIdentifier?
readonlyoptionalauthorityKeyIdentifier?:string
Defined in: src/revocation/crl.ts:206
Hex-encoded Authority Key Identifier, if the extension is present.
baseCrlNumber?
readonlyoptionalbaseCrlNumber?:number
Defined in: src/revocation/crl.ts:210
Delta CRL indicator — present only on delta CRLs, referencing the base CRL number.
crlNumber?
readonlyoptionalcrlNumber?:number
Defined in: src/revocation/crl.ts:208
CRLNumber extension value — monotonically increasing sequence number.
der?
readonlyoptionalder?:Uint8Array<ArrayBufferLike>
Defined in: src/revocation/crl.ts:182
Original DER bytes when this object came from parseCertificateRevocationListDer or PEM parsing.
freshestCrlDistributionPoints?
readonlyoptionalfreshestCrlDistributionPoints?: readonlyParsedDistributionPoint[]
Defined in: src/revocation/crl.ts:214
Freshest CRL extension — points to delta CRL locations.
issuer
readonlyissuer:ParsedName
Defined in: src/revocation/crl.ts:190
CRL issuer distinguished name.
issuerPublicKeyAlgorithmOid?
readonlyoptionalissuerPublicKeyAlgorithmOid?:string
Defined in: src/revocation/crl.ts:202
OID of the issuer's public key algorithm, when available.
issuerPublicKeyParametersOid?
readonlyoptionalissuerPublicKeyParametersOid?:string
Defined in: src/revocation/crl.ts:204
OID of the issuer's public key parameters (e.g. named curve), when available.
issuingDistributionPoint?
readonlyoptionalissuingDistributionPoint?:ParsedIssuingDistributionPoint
Defined in: src/revocation/crl.ts:212
Issuing distribution point extension — scopes this CRL to a certificate subset.
nextUpdate?
readonlyoptionalnextUpdate?:Date
Defined in: src/revocation/crl.ts:194
End of the CRL validity window. Absent if the CA does not commit to a schedule.
revokedCertificates
readonlyrevokedCertificates: readonlyParsedRevokedCertificate[]
Defined in: src/revocation/crl.ts:216
All revoked certificate entries (empty array if none).
signatureAlgorithmName
readonlysignatureAlgorithmName:string
Defined in: src/revocation/crl.ts:198
Human-readable signature algorithm name (e.g. "ECDSA with SHA-256").
signatureAlgorithmOid
readonlysignatureAlgorithmOid:string
Defined in: src/revocation/crl.ts:196
OID of the algorithm used to sign this CRL.
signatureAlgorithmParametersDer?
readonlyoptionalsignatureAlgorithmParametersDer?:Uint8Array<ArrayBufferLike>
Defined in: src/revocation/crl.ts:200
DER-encoded signature algorithm parameters (e.g. DER NULL for RSA PKCS#1 v1.5).
signatureValue
readonlysignatureValue:Uint8Array
Defined in: src/revocation/crl.ts:188
Raw signature bytes from the CRL outer wrapper.
tbsCertListDer
readonlytbsCertListDer:Uint8Array
Defined in: src/revocation/crl.ts:186
DER-encoded TBSCertList — the signed payload for signature verification.
thisUpdate
readonlythisUpdate:Date
Defined in: src/revocation/crl.ts:192
Start of the CRL validity window.
version
readonlyversion:number
Defined in: src/revocation/crl.ts:184
CRL version (1 = v1, 2 = v2 with extensions).
ParsedOcspCertId
Defined in: src/revocation/ocsp.ts:112
Decoded OCSP CertID — identifies a certificate by hashed issuer name, hashed issuer key, and serial number.
Properties
hashAlgorithmName
readonlyhashAlgorithmName:string
Defined in: src/revocation/ocsp.ts:116
Human-readable hash algorithm name (e.g. "SHA-256").
hashAlgorithmOid
readonlyhashAlgorithmOid:string
Defined in: src/revocation/ocsp.ts:114
OID of the hash algorithm used for the name and key hashes.
issuerKeyHashHex
readonlyissuerKeyHashHex:string
Defined in: src/revocation/ocsp.ts:120
Hex-encoded hash of the issuer's SubjectPublicKey BIT STRING content.
issuerNameHashHex
readonlyissuerNameHashHex:string
Defined in: src/revocation/ocsp.ts:118
Hex-encoded hash of the issuer's distinguished name DER.
serialNumberHex
readonlyserialNumberHex:string
Defined in: src/revocation/ocsp.ts:122
Hex-encoded serial number of the certificate.
ParsedOcspRequest
Defined in: src/revocation/ocsp.ts:128
Decoded OCSP request, returned by parseOcspRequestDer / parseOcspRequestPem.
Properties
der?
readonlyoptionalder?:Uint8Array<ArrayBufferLike>
Defined in: src/revocation/ocsp.ts:130
Original DER bytes when this object came from parseOcspRequestDer or PEM parsing.
nonce?
readonlyoptionalnonce?:string
Defined in: src/revocation/ocsp.ts:134
Hex-encoded nonce extension value, if present.
requests
readonlyrequests: readonlyParsedOcspCertId[]
Defined in: src/revocation/ocsp.ts:132
CertIDs of the certificates being queried.
ParsedOcspResponse
Defined in: src/revocation/ocsp.ts:189
Decoded OCSP response, returned by parseOcspResponseDer / parseOcspResponsePem.
When responseStatus is not 'successful', most fields are absent.
Properties
certificates?
readonlyoptionalcertificates?: readonlyParsedCertificate<Record<never,never>>[]
Defined in: src/revocation/ocsp.ts:213
Certificates embedded in the response (typically the responder's chain).
der?
readonlyoptionalder?:Uint8Array<ArrayBufferLike>
Defined in: src/revocation/ocsp.ts:191
Original DER bytes when this object came from parseOcspResponseDer or PEM parsing.
nonce?
readonlyoptionalnonce?:string
Defined in: src/revocation/ocsp.ts:211
Hex-encoded nonce, if the response echoed one.
producedAt?
readonlyoptionalproducedAt?:Date
Defined in: src/revocation/ocsp.ts:207
Timestamp when the responder produced this response.
responderId?
readonlyoptionalresponderId?:ParsedOcspResponderId
Defined in: src/revocation/ocsp.ts:199
How the responder identifies itself.
responseDataDer?
readonlyoptionalresponseDataDer?:Uint8Array<ArrayBufferLike>
Defined in: src/revocation/ocsp.ts:197
DER-encoded ResponseData — the signed payload for signature verification.
responses?
readonlyoptionalresponses?: readonlyParsedOcspSingleResponse[]
Defined in: src/revocation/ocsp.ts:209
Per-certificate status entries.
responseStatus
readonlyresponseStatus:OcspResponseStatus
Defined in: src/revocation/ocsp.ts:193
Overall response status. Only 'successful' carries a BasicOCSPResponse body.
responseTypeOid?
readonlyoptionalresponseTypeOid?:string
Defined in: src/revocation/ocsp.ts:195
OID of the response type (normally id-pkix-ocsp-basic).
signatureAlgorithmName?
readonlyoptionalsignatureAlgorithmName?:string
Defined in: src/revocation/ocsp.ts:203
Human-readable signature algorithm name.
signatureAlgorithmOid?
readonlyoptionalsignatureAlgorithmOid?:string
Defined in: src/revocation/ocsp.ts:201
OID of the algorithm used to sign this response.
signatureValue?
readonlyoptionalsignatureValue?:Uint8Array<ArrayBufferLike>
Defined in: src/revocation/ocsp.ts:205
Raw signature bytes.
ParsedOcspSingleResponse
Defined in: src/revocation/ocsp.ts:151
Status of one certificate inside an OCSP BasicResponse.
Properties
certId
readonlycertId:ParsedOcspCertId
Defined in: src/revocation/ocsp.ts:153
Which certificate this status applies to.
certStatus
readonlycertStatus:OcspCertStatus
Defined in: src/revocation/ocsp.ts:155
Responder's verdict: good, revoked, or unknown.
nextUpdate?
readonlyoptionalnextUpdate?:Date
Defined in: src/revocation/ocsp.ts:159
End of the validity window. Absent if the responder does not commit to a schedule.
revocationReasonCode?
readonlyoptionalrevocationReasonCode?:number
Defined in: src/revocation/ocsp.ts:163
CRLReason integer (only for certStatus === 'revoked').
revokedAt?
readonlyoptionalrevokedAt?:Date
Defined in: src/revocation/ocsp.ts:161
When the certificate was revoked (only for certStatus === 'revoked').
thisUpdate
readonlythisUpdate:Date
Defined in: src/revocation/ocsp.ts:157
Start of the validity window for this status assertion.
ParsedRevokedCertificate
Defined in: src/revocation/crl.ts:163
A single revoked-certificate entry decoded from a CRL.
Properties
certificateIssuer?
readonlyoptionalcertificateIssuer?: readonlySubjectAltName[]
Defined in: src/revocation/crl.ts:173
Indirect-CRL certificate issuer override (RFC 5280 §5.3.3).
invalidityDate?
readonlyoptionalinvalidityDate?:Date
Defined in: src/revocation/crl.ts:171
When the key or certificate actually became suspect, if present.
reasonCode?
readonlyoptionalreasonCode?:RevocationReason
Defined in: src/revocation/crl.ts:169
RFC 5280 CRLReason, if the entry carries one.
revocationDate
readonlyrevocationDate:Date
Defined in: src/revocation/crl.ts:167
When the CA declared this certificate revoked.
serialNumberHex
readonlyserialNumberHex:string
Defined in: src/revocation/crl.ts:165
Hex-encoded serial number of the revoked certificate.
ResolveOcspResponderCandidatesInput
Defined in: src/revocation/revocation.ts:50
Input for resolveOcspResponderCandidates.
Properties
certificate
readonlycertificate:RevocationCertificateSource
Defined in: src/revocation/revocation.ts:52
Certificate whose AIA extension will be inspected for OCSP URIs.
configuredResponders?
readonlyoptionalconfiguredResponders?: readonlyConfiguredOcspResponder[]
Defined in: src/revocation/revocation.ts:54
Manually-configured responders — checked before AIA-derived ones.
RevocationCheckGoodValue
Defined in: src/revocation/revocation.ts:151
Certificate is not revoked according to the checked evidence.
Properties
message
readonlymessage:string
Defined in: src/revocation/revocation.ts:157
Human-readable diagnostic message.
source
readonlysource:RevocationEvidenceKind
Defined in: src/revocation/revocation.ts:155
Which evidence kind confirmed the good status.
status
readonlystatus:"good"
Defined in: src/revocation/revocation.ts:153
Certificate is not revoked.
RevocationCheckRevokedValue
Defined in: src/revocation/revocation.ts:161
Certificate is revoked according to the checked evidence.
Properties
message
readonlymessage:string
Defined in: src/revocation/revocation.ts:167
Human-readable diagnostic message.
revocationReason?
readonlyoptionalrevocationReason?:RevocationReason
Defined in: src/revocation/revocation.ts:171
CRL reason string (from CRL evidence).
revocationReasonCode?
readonlyoptionalrevocationReasonCode?:number
Defined in: src/revocation/revocation.ts:173
CRL reason integer code (from OCSP evidence).
revokedAt?
readonlyoptionalrevokedAt?:Date
Defined in: src/revocation/revocation.ts:169
When the certificate was revoked (from CRL entry or OCSP response).
source
readonlysource:RevocationEvidenceKind
Defined in: src/revocation/revocation.ts:165
Which evidence kind reported the revocation.
status
readonlystatus:"revoked"
Defined in: src/revocation/revocation.ts:163
Certificate is revoked.
RevocationCheckUnknownValue
Defined in: src/revocation/revocation.ts:139
Revocation status could not be determined from the provided evidence.
Properties
code
readonlycode:CheckCertificateRevocationErrorCode
Defined in: src/revocation/revocation.ts:143
Why revocation status is unknown.
details
readonlydetails:CheckCertificateRevocationFailureDetails
Defined in: src/revocation/revocation.ts:147
What evidence was attempted and why each failed.
message
readonlymessage:string
Defined in: src/revocation/revocation.ts:145
Human-readable diagnostic message.
status
readonlystatus:"unknown"
Defined in: src/revocation/revocation.ts:141
Status is indeterminate.
RevocationCrlEvidenceInput
Defined in: src/revocation/revocation.ts:58
CRL-based revocation evidence for CheckCertificateRevocationInput.evidence.
Properties
crl
readonlycrl:CrlSource
Defined in: src/revocation/revocation.ts:62
Complete (base) CRL.
deltaCrl?
readonlyoptionaldeltaCrl?:CrlSource
Defined in: src/revocation/revocation.ts:64
Optional delta CRL for more recent revocation information.
kind
readonlykind:"crl"
Defined in: src/revocation/revocation.ts:60
Discriminator for the CRL evidence variant.
RevocationExecutionError
Defined in: src/revocation/chain.ts:180
Errors encountered while processing revocation evidence.
Distinct from RevocationIndeterminateReason: execution errors are code failures (malformed CRL, unsupported extension) rather than evaluation outcomes (CRL doesn't cover this certificate).
Collected in CheckChainRevocationValue.executionErrors.
Properties
evidenceIdentifier?
readonlyoptionalevidenceIdentifier?:string
Defined in: src/revocation/chain.ts:186
Which evidence caused the error (e.g., CRL issuer DN).
kind
readonlykind:"parse_error"|"unsupported_extension"|"internal_error"
Defined in: src/revocation/chain.ts:182
Error category.
message
readonlymessage:string
Defined in: src/revocation/chain.ts:184
Human-readable error description.
RevocationIndeterminateEvidence
Defined in: src/revocation/revocation.ts:119
One piece of evidence that failed to produce a definitive revocation answer.
Properties
code
readonlycode:RevocationIndeterminateReasonCode
Defined in: src/revocation/revocation.ts:123
Machine-readable reason code.
message
readonlymessage:string
Defined in: src/revocation/revocation.ts:125
Human-readable explanation.
reason?
readonlyoptionalreason?:CrlApplicabilityFailureReason
Defined in: src/revocation/revocation.ts:127
CRL-specific applicability failure reason, when source is 'crl'.
source
readonlysource:RevocationEvidenceKind
Defined in: src/revocation/revocation.ts:121
Whether this evidence was CRL or OCSP.
RevocationOcspEvidenceInput
Defined in: src/revocation/revocation.ts:68
OCSP-based revocation evidence for CheckCertificateRevocationInput.evidence.
Properties
kind
readonlykind:"ocsp"
Defined in: src/revocation/revocation.ts:70
Discriminator for the OCSP evidence variant.
request?
readonlyoptionalrequest?:OcspRequestSource
Defined in: src/revocation/revocation.ts:74
Original OCSP request — enables nonce and coverage checks.
responderCertificate?
readonlyoptionalresponderCertificate?:OcspCertificateSource
Defined in: src/revocation/revocation.ts:76
Explicit responder certificate — overrides embedded certificate discovery.
response
readonlyresponse:string|Uint8Array<ArrayBufferLike> |ParsedOcspResponse
Defined in: src/revocation/revocation.ts:72
OCSP response to validate.
RevocationPolicy
Defined in: src/revocation/chain.ts:50
Revocation checking policy for checkChainRevocation.
Controls how indeterminate results (missing evidence, expired CRLs) affect the final decision.
Properties
mode?
readonlyoptionalmode?:"soft-fail"|"hard-fail"
Defined in: src/revocation/chain.ts:57
How to handle indeterminate status.
'soft-fail': indeterminate certificates are allowed (default)'hard-fail': indeterminate certificates cause denial
prefer?
readonlyoptionalprefer?:"ocsp"|"crl"|"best-available"
Defined in: src/revocation/chain.ts:65
Evidence preference when multiple sources are available.
'best-available': use whichever evidence is freshest (default)'ocsp': prefer OCSP over CRL'crl': prefer CRL over OCSP
RevocationSource
Defined in: src/revocation/chain.ts:132
Identifies the source of revocation evidence.
Included in CertificateRevocationStatus.source when status is 'good' or 'revoked' to indicate which CRL or OCSP response provided the answer.
Properties
evidenceIdentifier?
readonlyoptionalevidenceIdentifier?:string
Defined in: src/revocation/chain.ts:138
Identifier for debugging (e.g., CRL issuer DN or OCSP responder URL).
signerCertificate?
readonlyoptionalsignerCertificate?:ParsedCertificate<Record<never,never>>
Defined in: src/revocation/chain.ts:136
Certificate that signed the evidence (CRL issuer or OCSP responder).
type
readonlytype:"ocsp"|"crl"
Defined in: src/revocation/chain.ts:134
Whether evidence came from a CRL or OCSP response.
RevokedCertificateInput
Defined in: src/revocation/crl.ts:94
Single revoked certificate entry for createCertificateRevocationList.
Properties
invalidityDate?
readonlyoptionalinvalidityDate?:Date
Defined in: src/revocation/crl.ts:102
When the key or certificate became suspect — may predate revocationDate.
reasonCode?
readonlyoptionalreasonCode?:RevocationReason
Defined in: src/revocation/crl.ts:100
RFC 5280 CRLReason code. Omit for unspecified.
revocationDate?
readonlyoptionalrevocationDate?:Date
Defined in: src/revocation/crl.ts:98
When the certificate was revoked. Defaults to thisUpdate of the CRL.
serialNumber
readonlyserialNumber:Uint8Array
Defined in: src/revocation/crl.ts:96
DER-encoded certificate serial number to revoke.
ValidateCertificateRevocationListFailure
Defined in: src/revocation/crl.ts:276
Failure detail for validateCertificateRevocationList.
Possible codes: signature_invalid, issuer_mismatch, stale_crl, crl_sign_not_permitted.
Extends
Micro509Error<"signature_invalid"|"issuer_mismatch"|"stale_crl"|"crl_sign_not_permitted">
Properties
code
readonlycode:"signature_invalid"|"issuer_mismatch"|"stale_crl"|"crl_sign_not_permitted"
Defined in: src/result/result.ts:59
Machine-readable failure reason (e.g. 'malformed', 'expired').
Inherited from
details?
readonlyoptionaldetails?:Record<never,never>
Defined in: src/result/result.ts:63
Optional structured context for the failure.
Inherited from
message
readonlymessage:string
Defined in: src/result/result.ts:61
Human-readable diagnostic message.
Inherited from
ok
readonlyok:false
Defined in: src/revocation/crl.ts:281
Always false for failures.
ValidateCertificateRevocationListInput
Defined in: src/revocation/crl.ts:260
Input for validateCertificateRevocationList.
Properties
at?
readonlyoptionalat?:Date
Defined in: src/revocation/crl.ts:266
Evaluation time for freshness checks. Defaults to new Date().
clockSkewMs?
readonlyoptionalclockSkewMs?:number
Defined in: src/revocation/crl.ts:268
Tolerance in milliseconds for clock skew when checking thisUpdate/nextUpdate.
crl
readonlycrl:CrlSource
Defined in: src/revocation/crl.ts:262
The CRL to validate.
issuerCertificate
readonlyissuerCertificate:CrlCertificateSource
Defined in: src/revocation/crl.ts:264
Certificate of the CA that should have signed the CRL.
ValidateOcspResponseFailure
Defined in: src/revocation/ocsp.ts:312
Failure detail for validateOcspResponse.
Possible codes: response_status_invalid, signature_invalid, responder_id_mismatch, nonce_mismatch, request_mismatch, issuer_mismatch, responder_chain_invalid, ocsp_signing_missing, stale_response.
Extends
Micro509Error<"response_status_invalid"|"signature_invalid"|"responder_id_mismatch"|"nonce_mismatch"|"request_mismatch"|"issuer_mismatch"|"responder_chain_invalid"|"ocsp_signing_missing"|"stale_response">
Properties
code
readonlycode:"signature_invalid"|"issuer_mismatch"|"response_status_invalid"|"responder_id_mismatch"|"nonce_mismatch"|"request_mismatch"|"responder_chain_invalid"|"ocsp_signing_missing"|"stale_response"
Defined in: src/result/result.ts:59
Machine-readable failure reason (e.g. 'malformed', 'expired').
Inherited from
details?
readonlyoptionaldetails?:Record<never,never>
Defined in: src/result/result.ts:63
Optional structured context for the failure.
Inherited from
message
readonlymessage:string
Defined in: src/result/result.ts:61
Human-readable diagnostic message.
Inherited from
ok
readonlyok:false
Defined in: src/revocation/ocsp.ts:325
Always false for failures.
ValidateOcspResponseInput
Defined in: src/revocation/ocsp.ts:287
Input for validateOcspResponse.
Properties
allowChainedResponderCertificate?
readonlyoptionalallowChainedResponderCertificate?:boolean
Defined in: src/revocation/ocsp.ts:297
When true, allows delegated responder chain validation beyond direct issuance.
at?
readonlyoptionalat?:Date
Defined in: src/revocation/ocsp.ts:299
Evaluation time for freshness checks. Defaults to new Date().
clockSkewMs?
readonlyoptionalclockSkewMs?:number
Defined in: src/revocation/ocsp.ts:301
Clock-skew tolerance in milliseconds for thisUpdate/nextUpdate/producedAt.
issuerCertificate
readonlyissuerCertificate:OcspCertificateSource
Defined in: src/revocation/ocsp.ts:291
Certificate of the CA that issued the target certificate.
request?
readonlyoptionalrequest?:OcspRequestSource
Defined in: src/revocation/ocsp.ts:293
Original request — enables nonce and request-coverage checks.
responderCertificate?
readonlyoptionalresponderCertificate?:OcspCertificateSource
Defined in: src/revocation/ocsp.ts:295
Explicit responder certificate — overrides embedded certificate discovery.
response
readonlyresponse:string|Uint8Array<ArrayBufferLike> |ParsedOcspResponse
Defined in: src/revocation/ocsp.ts:289
The OCSP response to validate.
VerifyCertificateRevocationListFailure
Defined in: src/revocation/crl.ts:239
Failure detail when CRL signature verification fails.
Extends
Micro509Error<"signature_invalid">
Properties
code
readonlycode:"signature_invalid"
Defined in: src/result/result.ts:59
Machine-readable failure reason (e.g. 'malformed', 'expired').
Inherited from
details?
readonlyoptionaldetails?:Record<never,never>
Defined in: src/result/result.ts:63
Optional structured context for the failure.
Inherited from
message
readonlymessage:string
Defined in: src/result/result.ts:61
Human-readable diagnostic message.
Inherited from
ok
readonlyok:false
Defined in: src/revocation/crl.ts:241
Always false for failures.
VerifyOcspResponseFailure
Defined in: src/revocation/ocsp.ts:266
Failure detail when OCSP response signature verification fails.
Extends
Micro509Error<"signature_invalid">
Properties
code
readonlycode:"signature_invalid"
Defined in: src/result/result.ts:59
Machine-readable failure reason (e.g. 'malformed', 'expired').
Inherited from
details?
readonlyoptionaldetails?:Record<never,never>
Defined in: src/result/result.ts:63
Optional structured context for the failure.
Inherited from
message
readonlymessage:string
Defined in: src/result/result.ts:61
Human-readable diagnostic message.
Inherited from
ok
readonlyok:false
Defined in: src/revocation/ocsp.ts:268
Always false for failures.
Type Aliases
CertificateSource
CertificateSource =
string|Uint8Array|ParsedCertificate
Defined in: src/revocation/chain.ts:34
Certificate in any supported format.
Accepts PEM string, DER bytes, or an already-parsed ParsedCertificate. Used for CheckChainRevocationInput.extraCertificates.
CheckCertificateRevocationAgainstCrlErrorCode
CheckCertificateRevocationAgainstCrlErrorCode =
"signature_invalid"|"issuer_mismatch"|"stale_crl"|"crl_sign_not_permitted"|"non_applicable"
Defined in: src/revocation/crl.ts:320
Error codes that checkCertificateRevocationAgainstCrl may return.
CheckCertificateRevocationAgainstCrlResult
CheckCertificateRevocationAgainstCrlResult = {
ok:true;value:CheckCertificateRevocationAgainstCrlValue; } |ErrorResult<CheckCertificateRevocationAgainstCrlErrorCode,CheckCertificateRevocationAgainstCrlFailureDetails,CheckCertificateRevocationAgainstCrlFailure>
Defined in: src/revocation/crl.ts:397
Result of checkCertificateRevocationAgainstCrl.
On success value.status is 'good' or 'revoked'. On failure the CRL could not be validated or was non-applicable.
CheckCertificateRevocationAgainstCrlValue
CheckCertificateRevocationAgainstCrlValue =
CheckCertificateRevocationAgainstCrlGoodValue|CheckCertificateRevocationAgainstCrlRevokedValue
Defined in: src/revocation/crl.ts:387
Discriminated union of good and revoked outcomes.
CheckCertificateRevocationErrorCode
CheckCertificateRevocationErrorCode =
"revocation_evidence_missing"|"revocation_status_unknown"
Defined in: src/revocation/revocation.ts:97
Error codes that checkCertificateRevocation may surface inside an unknown result.
CheckCertificateRevocationResult
CheckCertificateRevocationResult =
Result<CheckCertificateRevocationValue,never>
Defined in: src/revocation/revocation.ts:186
Result of checkCertificateRevocation. Always succeeds (ok: true) — the value.status discriminator carries the actual outcome.
CheckCertificateRevocationValue
CheckCertificateRevocationValue =
RevocationCheckGoodValue|RevocationCheckRevokedValue|RevocationCheckUnknownValue
Defined in: src/revocation/revocation.ts:177
Discriminated union of good, revoked, and unknown revocation outcomes.
CheckChainRevocationResult
CheckChainRevocationResult =
object
Defined in: src/revocation/chain.ts:218
Result type for checkChainRevocation.
Properties
ok
readonlyok:true
Defined in: src/revocation/chain.ts:219
value
readonlyvalue:CheckChainRevocationValue
Defined in: src/revocation/chain.ts:220
ConfiguredOcspResponderCertificate
ConfiguredOcspResponderCertificate =
string|Uint8Array
Defined in: src/revocation/revocation.ts:29
PEM or DER bytes of a pre-configured OCSP responder certificate.
CrlApplicabilityFailureReason
CrlApplicabilityFailureReason =
"certificate_scope_mismatch"|"delta_crl_incompatible"|"delta_crl_unsupported"|"distribution_point_mismatch"|"indirect_crl_unsupported"|"issuer_mismatch"|"reasons_mismatch"
Defined in: src/revocation/crl.ts:328
Structured reason why a CRL was deemed non-applicable to a given certificate.
CrlCertificateSource
CrlCertificateSource =
string|Uint8Array|ParsedCertificate
Defined in: src/revocation/crl.ts:236
PEM string, DER bytes, or already-parsed certificate.
CrlSource
CrlSource =
string|Uint8Array|ParsedCertificateRevocationList
Defined in: src/revocation/crl.ts:234
PEM string, DER bytes, or already-parsed CRL.
OcspCertificateSource
OcspCertificateSource =
string|Uint8Array|ParsedCertificate
Defined in: src/revocation/ocsp.ts:69
PEM string, DER bytes, or already-parsed certificate.
OcspCertStatus
OcspCertStatus =
"good"|"revoked"|"unknown"
Defined in: src/revocation/ocsp.ts:138
RFC 6960 certificate status reported by the responder for a single CertID.
OcspHashAlgorithm
OcspHashAlgorithm =
"SHA-1"|"SHA-256"
Defined in: src/revocation/ocsp.ts:67
Hash algorithm used to compute OCSP CertID fields. SHA-1 is the RFC 6960 default.
OcspRequestSource
OcspRequestSource =
string|Uint8Array|ParsedOcspRequest
Defined in: src/revocation/ocsp.ts:71
PEM string, DER bytes, or already-parsed OCSP request.
OcspResponderSource
OcspResponderSource =
"configured"|"authorityInfoAccess"
Defined in: src/revocation/revocation.ts:27
Where the OCSP responder URI came from.
OcspResponseSource
OcspResponseSource =
string|Uint8Array
Defined in: src/revocation/chain.ts:42
OCSP response in any supported format.
Accepts PEM string or DER bytes. Reserved for future OCSP support in CheckChainRevocationInput.ocspResponses.
OcspResponseStatus
OcspResponseStatus =
"successful"|"malformedRequest"|"internalError"|"tryLater"|"sigRequired"|"unauthorized"
Defined in: src/revocation/ocsp.ts:140
RFC 6960 overall response status — anything other than 'successful' means the response body is absent or unusable.
ParsedOcspResponderId
ParsedOcspResponderId = {
name:ParsedName;type:"byName"; } | {keyHashHex:string;type:"byKeyHash"; }
Defined in: src/revocation/ocsp.ts:170
How the OCSP responder identifies itself — either by distinguished name or by SHA-1 hash of its public key.
Union Members
Type Literal
{ name: ParsedName; type: "byName"; }
name
readonlyname:ParsedName
Parsed distinguished name of the responder.
type
readonlytype:"byName"
Responder identified by its certificate subject name.
Type Literal
{ keyHashHex: string; type: "byKeyHash"; }
keyHashHex
readonlykeyHashHex:string
Hex-encoded SHA-1 hash of the responder's SubjectPublicKey content.
type
readonlytype:"byKeyHash"
Responder identified by public-key hash.
RevocationCertificateSource
RevocationCertificateSource =
string|Uint8Array|ParsedCertificate
Defined in: src/revocation/revocation.ts:25
PEM string, DER bytes, or already-parsed certificate.
RevocationEvidenceInput
RevocationEvidenceInput =
RevocationCrlEvidenceInput|RevocationOcspEvidenceInput
Defined in: src/revocation/revocation.ts:80
Discriminated union of CRL and OCSP evidence inputs.
RevocationEvidenceKind
RevocationEvidenceKind =
"crl"|"ocsp"
Defined in: src/revocation/revocation.ts:23
Which revocation mechanism produced the evidence.
RevocationIndeterminateReason
RevocationIndeterminateReason =
"no_applicable_crl"|"no_applicable_ocsp"|"distribution_point_mismatch"|"issuer_name_mismatch"|"reason_scope_mismatch"|"indirect_crl_scope_mismatch"|"reason_coverage_incomplete"|"crl_signer_not_found"|"crl_signer_not_authorized"|"crl_signer_revoked"|"crl_signer_indeterminate"|"ocsp_responder_not_found"|"ocsp_responder_not_authorized"|"ocsp_responder_revoked"|"ocsp_responder_indeterminate"|"crl_expired"|"ocsp_response_expired"|"ocsp_status_unknown"
Defined in: src/revocation/chain.ts:101
Granular reasons why revocation status could not be determined.
Returned in CertificateRevocationStatus.indeterminateReasons when status is 'indeterminate'. Grouped by category:
- Evidence not found:
no_applicable_crl,no_applicable_ocsp - Scope mismatch:
distribution_point_mismatch,issuer_name_mismatch,reason_scope_mismatch,indirect_crl_scope_mismatch,reason_coverage_incomplete - Signer trust:
crl_signer_not_found,crl_signer_not_authorized,crl_signer_revoked,crl_signer_indeterminate, and OCSP equivalents - Freshness:
crl_expired,ocsp_response_expired
RevocationIndeterminateReasonCode
RevocationIndeterminateReasonCode =
"certificate_status_missing"|"certificate_status_unknown"|"crl_sign_not_permitted"|"issuer_mismatch"|"non_applicable"|"nonce_mismatch"|"ocsp_signing_missing"|"request_mismatch"|"responder_id_mismatch"|"responder_chain_invalid"|"response_status_invalid"|"signature_invalid"|"stale_crl"|"stale_response"
Defined in: src/revocation/revocation.ts:102
Why a particular piece of evidence could not produce a definitive good/revoked answer.
RevocationReason
RevocationReason =
"unspecified"|"keyCompromise"|"cACompromise"|"affiliationChanged"|"superseded"|"cessationOfOperation"|"certificateHold"|"removeFromCRL"|"privilegeWithdrawn"|"aACompromise"
Defined in: src/revocation/crl.ts:110
RFC 5280 §5.3.1 CRLReason code values.
removeFromCRL is used in delta CRLs to un-hold a certificate.
RevocationStatus
RevocationStatus =
"good"|"revoked"|"unknown"
Defined in: src/revocation/revocation.ts:20
Unified revocation outcome across CRL and OCSP evidence.
ValidateCertificateRevocationListResult
ValidateCertificateRevocationListResult = {
ok:true;value:ParsedCertificateRevocationList; } |ErrorResult<"signature_invalid"|"issuer_mismatch"|"stale_crl"|"crl_sign_not_permitted",Record<never,never>,ValidateCertificateRevocationListFailure>
Defined in: src/revocation/crl.ts:289
Result of validateCertificateRevocationList.
On success, the CRL has passed signature, issuer, key-usage, and freshness checks.
Union Members
Type Literal
{ ok: true; value: ParsedCertificateRevocationList; }
ok
readonlyok:true
value
readonlyvalue:ParsedCertificateRevocationList
Validated and parsed CRL.
ErrorResult<"signature_invalid" | "issuer_mismatch" | "stale_crl" | "crl_sign_not_permitted", Record<never, never>, ValidateCertificateRevocationListFailure>
ValidateOcspResponseResult
ValidateOcspResponseResult = {
ok:true;value:ParsedOcspResponse; } |ErrorResult<"response_status_invalid"|"signature_invalid"|"responder_id_mismatch"|"nonce_mismatch"|"request_mismatch"|"issuer_mismatch"|"responder_chain_invalid"|"ocsp_signing_missing"|"stale_response",Record<never,never>,ValidateOcspResponseFailure>
Defined in: src/revocation/ocsp.ts:334
Result of validateOcspResponse.
On success, the response has passed status, signature, responder binding, freshness, nonce, and request-coverage checks.
Union Members
Type Literal
{ ok: true; value: ParsedOcspResponse; }
ok
readonlyok:true
value
readonlyvalue:ParsedOcspResponse
Fully validated OCSP response.
ErrorResult<"response_status_invalid" | "signature_invalid" | "responder_id_mismatch" | "nonce_mismatch" | "request_mismatch" | "issuer_mismatch" | "responder_chain_invalid" | "ocsp_signing_missing" | "stale_response", Record<never, never>, ValidateOcspResponseFailure>
VerifyCertificateRevocationListResult
VerifyCertificateRevocationListResult = {
ok:true;value:ParsedCertificateRevocationList; } |ErrorResult<"signature_invalid",Record<never,never>,VerifyCertificateRevocationListFailure>
Defined in: src/revocation/crl.ts:249
Result of verifyCertificateRevocationList.
On success, value is the parsed CRL whose signature has been verified.
Union Members
Type Literal
{ ok: true; value: ParsedCertificateRevocationList; }
ok
readonlyok:true
value
readonlyvalue:ParsedCertificateRevocationList
Parsed CRL with a verified signature.
ErrorResult<"signature_invalid", Record<never, never>, VerifyCertificateRevocationListFailure>
VerifyOcspResponseResult
VerifyOcspResponseResult = {
ok:true;value:ParsedOcspResponse; } |ErrorResult<"signature_invalid",Record<never,never>,VerifyOcspResponseFailure>
Defined in: src/revocation/ocsp.ts:276
Result of verifyOcspResponse.
On success, value is the parsed response whose signature has been verified.
Union Members
Type Literal
{ ok: true; value: ParsedOcspResponse; }
ok
readonlyok:true
value
readonlyvalue:ParsedOcspResponse
Parsed response with a verified signature.
ErrorResult<"signature_invalid", Record<never, never>, VerifyOcspResponseFailure>