Certificate revocation lists (RFC 5280, 5): their reading, the verification of their signature by the CA that issued the certificate, and the status of a certificate.
Only complete, direct CRLs are used: a delta CRL, an indirect CRL, a CRL restricted to some reasons, or a critical extension this class does not know, make the CRL unusable rather than partly read.
A CRL read is an array: 'der', 'issuer' (the DER of its issuer name), 'thisUpdate', 'nextUpdate' (UNIX times, NULL if none), 'revoked' (by the serial number in hexadecimal: 'date' and 'reason'), 'onlyUserCerts', 'onlyCACerts', 'expiredCertsOnCrl', 'tbs', 'signatureAlgorithm', 'signature'.
| Methods | ||
|---|---|---|
public
static
|
read(string $data): array
|
# |
public
static
|
readReasonCode($value)
|
# |
public
static
|
covers(array $crl, X509Cert $certificate, X509Cert $issuer): string|null
|
# |
public
static
|
source(array $crl)
|
# |
| Constants | |||
|---|---|---|---|
public
|
AUTHORITY_KEY_ID = '2.5.29.35'
|
# | |
public
|
CRL_NUMBER = '2.5.29.20'
|
# | |
public
|
DELTA_CRL_INDICATOR = '2.5.29.27'
|
# | |
public
|
ISSUING_DISTRIBUTION_POINT = '2.5.29.28'
|
# | |
public
|
FRESHEST_CRL = '2.5.29.46'
|
# | |
public
|
AUTHORITY_INFO_ACCESS = '1.3.6.1.5.5.7.1.1'
|
# | |
public
|
EXPIRED_CERTS_ON_CRL = '2.5.29.60'
|
# | |
public
|
REASON_CODE = '2.5.29.21'
|
# | |
public
|
INVALIDITY_DATE = '2.5.29.24'
|
# | |
public
|
CERTIFICATE_ISSUER = '2.5.29.29'
|
# | |
public
|
HOLD_INSTRUCTION_CODE = '2.5.29.23'
|
# | |
public
|
KNOWN_CRL_EXTENSIONS = [
self::AUTHORITY_KEY_ID,
self::CRL_NUMBER,
self::ISSUING_DISTRIBUTION_POINT,
self::FRESHEST_CRL,
self::AUTHORITY_INFO_ACCESS,
self::EXPIRED_CERTS_ON_CRL,
]
|
# | |
public
|
KNOWN_ENTRY_EXTENSIONS = [self::REASON_CODE, self::INVALIDITY_DATE, self::HOLD_INSTRUCTION_CODE]
|
# | |