Feature notes: PKIX / CMS implementation notes
inherits from eDSIPkix
This CRL's issuer is not authoritative for the certificate under test: the issuers differ and the certificate delegates nothing to this CRL issuer through its CRLDistributionPoints (RFC 5280 sec. 4.2.1.13 / 5.1.2.1). Part of the PKIX branch of the DSI exception hierarchy (eDSIPkix, StreamSec.DSI.PkixSigned).
(no public members)
(no public members)
(no public members)
(no public members)
(no public members)
inherits from iASN1CustomStruct
The parsed tbsCertList (to-be-signed CertificateList) body of an X.509 CRL, RFC 5280 section 5.1. An application walks this via iCertificateList.tbsCertList when it needs to inspect a CRL's raw fields directly (issuer, validity window, the revoked-entry list) rather than call the higher-level iCertificateList query methods (IsRevoked, GetCRLNumber, etc.) that already interpret them. Not client/server specific: it is plain PKIX data used the same way by any relying party (TLS client verifying a server chain or TLS server verifying a client chain in mTLS) and by CA-authoring code that just produced it via tCertificateList.RevokeCertificate.
function get_crlExtensions: iCRLExtensions;
function get_issuer: iName;
function get_nextUpdate: iTime;
function get_revokedCertificates(aIndex: Integer): iRevokedCertificate;
function get_revokedCertificatesCount: Integer;
function get_signatureAlgorithm: iSignatureAlgorithmIdentifier;
function get_thisUpdate: iTime;
function get_version: iASN1Integer;
property version: iASN1Integer read get_version;
property signatureAlgorithm: iSignatureAlgorithmIdentifier read get_signatureAlgorithm;
property issuer: iName read get_issuer;
property thisUpdate: iTime read get_thisUpdate;
property nextUpdate: iTime read get_nextUpdate;
property revokedCertificatesCount: Integer read get_revokedCertificatesCount;
property revokedCertificates[aIndex: Integer]: iRevokedCertificate read get_revokedCertificates;
property crlExtensions: iCRLExtensions read get_crlExtensions;
inherits from tASN1CustomStruct
implements iTBSCertList
property version: iASN1Integer read get_version;
property signatureAlgorithm: iSignatureAlgorithmIdentifier read get_signatureAlgorithm;
property issuer: iName read get_issuer;
property thisUpdate: iTime read get_thisUpdate;
property nextUpdate: iTime read get_nextUpdate;
property revokedCertificatesCount: Integer read get_revokedCertificatesCount;
property revokedCertificates[aIndex: Integer]: iRevokedCertificate read get_revokedCertificates;
property crlExtensions: iCRLExtensions read get_crlExtensions;
inherits from iASN1CustomStruct
Decoded value of the IssuingDistributionPoint CRL extension (RFC 5280 section 5.2.5), reached via iCRLExtnValue.AsCeIssuingDistributionPoint. An application rarely builds one of these directly; it is mainly consulted by the trust-store's CRL-management logic (see AddCRL in StreamSec.Mobile.X509Comp.pas) to tell a full CRL apart from a partitioned or delta CRL scope and to decide which CRL supersedes another for a given CA. Same PKIX meaning on the TLS client (verifying a server chain) and the TLS server (verifying a client chain under mTLS) side.
function get_distributionPoint: iDistributionPointName;
function get_indirectCrl: Boolean;
function get_onlyContainsCacerts: Boolean;
function get_onlyContainsUserCerts: Boolean;
function get_onlySomeReasons: tReasonFlags;
procedure set_indirectCrl(const aValue: Boolean);
procedure set_onlyContainsCacerts(const aValue: Boolean);
procedure set_onlyContainsUserCerts(const aValue: Boolean);
procedure set_onlySomeReasons(const aValue: tReasonFlags);
function CompareIssuingDistributionPoints(const aDistPoint: iIssuingDistPointSyntax): Integer;
property distributionPoint: iDistributionPointName read get_distributionPoint;
property onlyContainsUserCerts: Boolean read get_onlyContainsUserCerts write set_onlyContainsUserCerts;
property onlyContainsCacerts: Boolean read get_onlyContainsCacerts write set_onlyContainsCacerts;
property onlySomeReasons: tReasonFlags read get_onlySomeReasons write set_onlySomeReasons;
property indirectCrl: Boolean read get_indirectCrl write set_indirectCrl;
inherits from tASN1CustomStruct
implements iIssuingDistPointSyntax
function CompareIssuingDistributionPoints(const aDistPoint: iIssuingDistPointSyntax): Integer;
property distributionPoint: iDistributionPointName read get_distributionPoint;
property onlyContainsUserCerts: Boolean read get_onlyContainsUserCerts write set_onlyContainsUserCerts;
property onlyContainsCacerts: Boolean read get_onlyContainsCacerts write set_onlyContainsCacerts;
property onlySomeReasons: tReasonFlags read get_onlySomeReasons write set_onlySomeReasons;
property indirectCrl: Boolean read get_indirectCrl write set_indirectCrl;
inherits from iASN1CustomStruct
One raw CRL-wide extension entry (an ASN.1 extnId/critical/extnValue triple, mirroring the per-certificate iExtension pattern but for a CRL's tbsCertList.crlExtensions). An application normally reaches the decoded value via iCertificateList/iTBSCertList.crlExtensions.UniqueItems, which hides this record; use this interface directly only when walking every extension present on a CRL rather than looking up one you already know the OID of. Same on TLS client and server, since CRL parsing is protocol-neutral PKIX code.
function get_critical: Boolean;
function get_extnId: ObjectIdentifier;
function get_extnValue: iCRLExtnValue;
procedure set_critical(const aValue: Boolean);
procedure set_extnId(const aValue: ObjectIdentifier);
property extnId: ObjectIdentifier read get_extnId write set_extnId;
property critical: Boolean read get_critical write set_critical;
property extnValue: iCRLExtnValue read get_extnValue;
inherits from tASN1CustomStruct
implements iCRLExtension
property extnId: ObjectIdentifier read get_extnId write set_extnId;
property critical: Boolean read get_critical write set_critical;
property extnValue: iCRLExtnValue read get_extnValue;
inherits from iASN1CustomStruct
The CRL-wide extensions collection, reached via iTBSCertList.crlExtensions or iCertificateList.tbsCertList.crlExtensions. Applications almost always go through the UniqueItems default property (e.g. as GetCRLNumber and GetBaseCRLNumber do internally) rather than scanning Items by position.
function get_Items(aIndex: Integer): iCRLExtension;
function get_UniqueItems(aIndex: tCRLExtnValueEnum): iCRLExtnValue;
property Items[aIndex: Integer]: iCRLExtension read get_Items;
property UniqueItems[aIndex: tCRLExtnValueEnum]: iCRLExtnValue read get_UniqueItems; default;
inherits from tASN1CustomOFStruct
implements iCRLExtensions
property Items[aIndex: Integer]: iCRLExtension read get_Items;
property UniqueItems[aIndex: tCRLExtnValueEnum]: iCRLExtnValue read get_UniqueItems; default;
inherits from iASN1CustomStruct
The per-revoked-certificate counterpart of iCRLExtension: one extension entry attached to a single iRevokedCertificate.crlEntryExtensions item (e.g. reasonCode, invalidityDate, certificateIssuer for an indirect CRL entry) rather than to the CRL as a whole. Same PKIX meaning regardless of which side (TLS client or server) is doing the revocation check.
function get_critical: Boolean;
function get_extnId: ObjectIdentifier;
function get_extnValue: iEntryExtnValue;
procedure set_critical(const aValue: Boolean);
procedure set_extnId(const aValue: ObjectIdentifier);
property extnId: ObjectIdentifier read get_extnId write set_extnId;
property critical: Boolean read get_critical write set_critical;
property extnValue: iEntryExtnValue read get_extnValue;
inherits from tASN1CustomStruct
implements iEntryExtension
property extnId: ObjectIdentifier read get_extnId write set_extnId;
property critical: Boolean read get_critical write set_critical;
property extnValue: iEntryExtnValue read get_extnValue;
inherits from iASN1CustomStruct
A single revoked-certificate entry's extensions collection (reached via iRevokedCertificate.crlEntryExtensions). Application code that just wants the reason/date for one entry typically uses the UniqueItems default property, exactly as tCertificateList.IsRevoked and RevokeCertificate do internally to read/write reasonCode, invalidityDate and certificateIssuer.
function get_Items(aIndex: Integer): iEntryExtension;
function get_UniqueItems(aIndex: tEntryExtnValueEnum): iEntryExtnValue;
property Items[aIndex: Integer]: iEntryExtension read get_Items;
property UniqueItems[aIndex: tEntryExtnValueEnum]: iEntryExtnValue read get_UniqueItems; default;
inherits from tASN1CustomOFStruct
implements iEntryExtensions
property Items[aIndex: Integer]: iEntryExtension read get_Items;
property UniqueItems[aIndex: tEntryExtnValueEnum]: iEntryExtnValue read get_UniqueItems; default;
inherits from iASN1CustomStruct
One entry in a CRL's revokedCertificates list. An application obtains these via iTBSCertList.revokedCertificates (indexed) rather than constructing them; tCertificateList.IsRevoked scans exactly this collection by userCertificate serial number to answer whether a given certificate is revoked, and RevokeCertificate appends a new entry here when acting as the CA that maintains the CRL. Identical meaning on either side of a TLS handshake, since revocation status is a plain PKIX fact about a certificate, not something specific to client or server.
function get_crlEntryExtensions: iEntryExtensions;
function get_revocationDate: iTime;
function get_userCertificate: iASN1Integer;
property userCertificate: iASN1Integer read get_userCertificate;
property revocationDate: iTime read get_revocationDate;
property crlEntryExtensions: iEntryExtensions read get_crlEntryExtensions;
inherits from tASN1CustomStruct
implements iRevokedCertificate
property userCertificate: iASN1Integer read get_userCertificate;
property revocationDate: iTime read get_revocationDate;
property crlEntryExtensions: iEntryExtensions read get_crlEntryExtensions;
inherits from tASN1CustomOFStruct
(no public members)
inherits from iSigned
A decoded (and, on the CA-authoring side, signable) X.509 CRL (CertificateList, RFC 5280 section 5.1). This is the interface an application actually uses: iCertificateList.IsRevoked/GetCRLNumber/ IsAllegedCRLIssuer are how a relying party's trust store checks revocation (see AddCRL/IsRevoked in StreamSec.Mobile.X509Comp.pas, which is shared, protocol-neutral chain-validation code invoked identically whether the app is a TLS client verifying a server chain or a TLS server verifying a client chain under mTLS), while RevokeCertificate is only meaningful for code that plays the CA role and maintains its own CRL (see TstX509TrustedCertificates.RevokeCertificate in stX509.pas). Being iSigned, an iCertificateList also has to be signed (or its signature verified) like any other PKIX signed structure.
function get_tbsCertList: iTBSCertList;
function GetCRLNumber: Int64;
function GetBaseCRLNumber: Int64;
function IsAllegedCRLIssuer(const aCACert: iCertificate): Boolean;
function IsRevoked(const aCert: iCertificate): Integer;
procedure RevokeCertificate(const aCert : iCertificate; aReason : tCRLReason; aHoldInstruction: ObjectIdentifier; aInvalidityDate : TDateTime); overload;
procedure RevokeCertificate(const aCert: iCertificate); overload;
property tbsCertList: iTBSCertList read get_tbsCertList;
inherits from tSigned
implements iCertificateList
function GetCRLNumber: Int64;
function GetBaseCRLNumber: Int64;
function IsAllegedCRLIssuer(const aCACert: iCertificate): Boolean;
function IsRevoked(const aCert: iCertificate): Integer;
procedure RevokeCertificate(const aCert : iCertificate; aReason : tCRLReason; aHoldInstruction: ObjectIdentifier; aInvalidityDate : TDateTime); overload;
procedure RevokeCertificate(const aCert: iCertificate); overload;
property tbsCertList: iTBSCertList read get_tbsCertList;
inherits from iASN1CustomInstance
A CHOICE-typed decoded value for one CRL-wide extension (reached via iCRLExtension.extnValue or, more commonly, iCRLExtensions.UniqueItems); exactly one of the AsCe... properties is meaningful at a time, selected by Choice/the extension's OID. Application code normally goes through UniqueItems (which both selects and decodes in one step) rather than inspecting Choice manually. Same on TLS client or server; this is protocol-neutral PKIX CRL parsing.
function get_AsCeAuthorityKeyIdentifier: iAuthorityKeyIdentifier;
function get_AsCeCrlnumber: iASN1Integer;
function get_AsCeDeltaCrlindicator: iASN1Integer;
function get_AsCeIssuerAltName: iGeneralNames;
function get_AsCeIssuingDistributionPoint: iIssuingDistPointSyntax;
function get_Choice: tCRLExtnValueEnum;
procedure set_Choice(const aValue: tCRLExtnValueEnum);
property Choice: tCRLExtnValueEnum read get_Choice write set_Choice;
property AsCeAuthorityKeyIdentifier: iAuthorityKeyIdentifier read get_AsCeAuthorityKeyIdentifier;
property AsCeIssuerAltName: iGeneralNames read get_AsCeIssuerAltName;
property AsCeCrlnumber: iASN1Integer read get_AsCeCrlnumber;
property AsCeDeltaCrlindicator: iASN1Integer read get_AsCeDeltaCrlindicator;
property AsCeIssuingDistributionPoint: iIssuingDistPointSyntax read get_AsCeIssuingDistributionPoint;
property Choice: tCRLExtnValueEnum read get_Choice write set_Choice;
property AsCeAuthorityKeyIdentifier: iAuthorityKeyIdentifier read get_AsCeAuthorityKeyIdentifier implements iAuthorityKeyIdentifier;
property AsCeIssuerAltName: iGeneralNames read get_AsCeIssuerAltName implements iGeneralNames;
property AsCeCrlnumber: iASN1Integer read get_AsCeCrlnumber;
property AsCeDeltaCrlindicator: iASN1Integer read get_AsCeDeltaCrlindicator;
property AsCeIssuingDistributionPoint: iIssuingDistPointSyntax read get_AsCeIssuingDistributionPoint implements iIssuingDistPointSyntax;
inherits from tASN1Enumerated
(no public members)
inherits from tASN1TypeIdentifier
(no public members)
inherits from iASN1CustomInstance
The CHOICE-typed decoded value for one per-entry (revoked-certificate) extension, reached via iEntryExtension.extnValue or, more commonly, iEntryExtensions.UniqueItems. tCertificateList.RevokeCertificate writes AsCeReasonCode/AsCeInvalidityDate/AsCeCertificateIssuer here when a CA application revokes a certificate; IsRevoked reads AsCeCertificateIssuer back when matching entries in an indirect CRL. Same meaning regardless of whether the consuming code is a TLS client or server.
function get_AsCeCertificateIssuer: iGeneralNames;
function get_AsCeInstructionCode: ObjectIdentifier;
function get_AsCeInvalidityDate: tDateTime;
function get_AsCeReasonCode: tCRLReason;
function get_Choice: tEntryExtnValueEnum;
procedure set_AsCeInstructionCode(const aValue: ObjectIdentifier);
procedure set_AsCeInvalidityDate(const aValue: tDateTime);
procedure set_AsCeReasonCode(const aValue: tCRLReason);
procedure set_Choice(const aValue: tEntryExtnValueEnum);
property Choice: tEntryExtnValueEnum read get_Choice write set_Choice;
property AsCeReasonCode: tCRLReason read get_AsCeReasonCode write set_AsCeReasonCode;
property AsCeInstructionCode: ObjectIdentifier read get_AsCeInstructionCode write set_AsCeInstructionCode;
property AsCeInvalidityDate: tDateTime read get_AsCeInvalidityDate write set_AsCeInvalidityDate;
property AsCeCertificateIssuer: iGeneralNames read get_AsCeCertificateIssuer;
property Choice: tEntryExtnValueEnum read get_Choice write set_Choice;
property AsCeReasonCode: tCRLReason read get_AsCeReasonCode write set_AsCeReasonCode;
property AsCeInstructionCode: ObjectIdentifier read get_AsCeInstructionCode write set_AsCeInstructionCode;
property AsCeInvalidityDate: tDateTime read get_AsCeInvalidityDate write set_AsCeInvalidityDate;
property AsCeCertificateIssuer: iGeneralNames read get_AsCeCertificateIssuer implements iGeneralNames;
inherits from tASN1TypeIdentifier
(no public members)