Module Info
- Reference
BT4PT-CertificatesV1-0- Numeric OID
1.3.6.1.4.1.17218.1.2.7.1.0
BT4PT Certificates - DRAFT.
BT4PT-CertificatesV1-01.3.6.1.4.1.17218.1.2.7.1.0This module explicitly exports the following symbols:
EndEntityCertificate RevocationNoticeCompanyCode Data ECPublicKey DataAuthorization UnicodeText Timestamp DATA-ELEMENT cuperEncoding nullEncoding caperEncoding
Extensions to X.509 made within this specification are identified under this following OID tree.
This sequence contains the following fields:
This field SHALL be unique amongst all End-Entity Certificates issued by that Issuing Certificate Authority key pair.
This type is constrained in the following way:
The value must be greater than or equal to:
1
The value must be less than or equal to:
16777216
The operator of the Issuing Certificate Authority.
This field, together with the previous field, identifies the Issuing Certificate Authority by its Certificate ID.
This type is constrained in the following way:
The value must be greater than or equal to:
1
The value must be less than or equal to:
65536
The Security Provider holding the private key corresponding to this certificate, and thus the Security Provider
of every envelope signed under it. If absent, the Security Provider is the operator of the Issuing Certificate
Authority, that is the company identified by issuingOrg.
This field SHALL NOT be present if the Security Provider is the company identified by issuingOrg.
This field, together with the next field, give the last day, in UTC, on which the certificate is valid. The certificate SHALL be considered expired after the end of that day. There is no start of validity encoded in the certificate; an End-Entity Certificate is valid from its issuance. The validity of an End-Entity Certificate SHALL NOT extend beyond the validity of its Issuing Certificate Authority certificate.
This type is constrained in the following way:
The value must be greater than or equal to:
2026
The value must be less than or equal to:
2281
The ordinal day of the year, with 1 January being day 1.
This type is constrained in the following way:
The value must be greater than or equal to:
1
The value must be less than or equal to:
366
This field contains the public key reconstruction point P_U as specified in .
Its curve SHALL be the curve of the Issuing Certificate Authority's public key; if it is not, the certificate
SHALL be treated as invalid.
The value of this choice may be one of the following:
A point on the NIST P-256 curve.
This type is concretely parameterised with the following:
32
A point on the NIST P-384 curve.
This type is concretely parameterised with the following:
48
A point on the NIST P-521 curve.
This type is concretely parameterised with the following:
66
The extensions of the certificate.
This type is constrained in the following way:
The length of the value must be greater than or equal to:
0
The length of the value must be less than or equal to:
15
This class defines extensions to X.509 and End-Entity Certificates for use in this standard.
Each object of this class identifies a extension and specifies the ASN.1 type used to represent its contents and the encoding rules used to encode those contents.
In End-Entity Certificates extensions are identified by their id.
If &id is not set, then the extension SHALL NOT appear in an End-Entity Certificate, only in an X.509 certificate.
In X.509 Certificates they are identified by their oid. The extnValue of such an extension SHALL contain the
encoding of the extension's &Type using the encoding rules identified by the object's &encoding.
Note: this is not necessarily DER, and is frequently UPER.
This object class has the following fields:
The extension identifier format is constructed according to one of the following options:
+ (U+002B, PLUS SIGN), concatenated with a 2-character uppercase country
code, concatenated with a string chosen by the national standards body of that country._ (U+005F, LOW LINE), concatenated with a 4-character ERA Organisation Code per
or RICS, concatenated with a string chosen by that company.* (U+002A, ASTERISK), concatenated with privately chosen string. Note: this variant has no guarantees
of avoiding clashes in assignment, and SHOULD NOT be used unless no other option is available.
If an organisation has a ERA Organisation Code or a RICS, this variant SHALL NOT be used.The 1st and 2nd variant SHOULD be registered before their first use. The 4th variant SHALL be registered before its first use. Registrations SHALL be made with [insert registration authority].
This field accepts any value of the following type:
VisibleStringThis type is constrained in the following way:
All the following must be true:
The length of the value must be greater than or equal to:
1
The length of the value must be less than or equal to:
8
AND
Any value, except any satisfying the following:
Any of the following can be true:
The value must be exactly:
!I
OR
The value must be exactly:
!C
OR
The value must be exactly:
!P
This field must be unique within an object set.
The Object Identifier for this extension.
This field accepts any value of the following type:
OBJECT IDENTIFIERThis field must be unique within an object set.
The data structure that describes the contents of this extension.
This field accepts any concrete type.
An object identifier specifying which of the ASN.1 encoding rules used to encode Type into an OCTET STRING
for the placing of this extension into a certificate.
This field accepts any value of the following type:
OBJECT IDENTIFIERThis set defines the BT4PT specific certificate extensions which are permissible to appear on X.509 Certificates.
This object set has the following members:
| &id | &oid | &Type | &encoding |
|---|---|---|---|
SP
|
id-specimenPoison | NULL | nullEncoding |
ID
|
id-securityProviderDataAuthorization |
DataAuthorization
This type is concretely parameterised with the following:
|
cuperEncoding |
| No value | id-certificateId |
INTEGER
This type is constrained in the following way: Range
The value must be greater than or equal to:
The value must be less than or equal to:
|
cuperEncoding |
| No value | id-keyAgreementKeyId |
INTEGER
This type is constrained in the following way: Range
The value must be greater than or equal to:
The value must be less than or equal to:
|
cuperEncoding |
| No value | id-endEntityCertificate | EndEntityCertificate | caperEncoding |
| Other members may be added at runtime. | |||
This data structure encodes an extension to an End-Entity Certificate, identified by its id.
An extension without an id SHALL NOT appear in an End-Entity Certificate.
This sequence contains the following fields:
This field allows for the introduction of new, security critical, elements in the future.
If an extension alters the validity of a certificate in a way which would cause Ticket Inspection Devices unaware of
the semantics of the extension to treat the ticket as valid where it shouldn't have been, this field SHALL be TRUE.
This field identifies which type of data element is encoded.
Its value is used to identify which type is contained within the value field, and what encoding has been used
for it.
This type is constrained in the following way:
All the following must be true:
The length of the value must be greater than or equal to:
1
The length of the value must be less than or equal to:
8
AND
Any value, except any satisfying the following:
Any of the following can be true:
The value must be exactly:
!I
OR
The value must be exactly:
!C
OR
The value must be exactly:
!P
This type is constrained in the following way:
The value must come from the &id column of the object set: EECertificateExtensions
This field contains the type identified by the format field, encoded according to the encoding given in the
corresponding CERTIFICATE-EXTENSION object.
This type is constrained in the following way:
The value must be an encoding of the following type:
ANYThis type is constrained in the following way:
The value must come from the &Type column of the object set:
EECertificateExtensions
The row is selected by the value of the fields:
format
This set defines the BT4PT specific certificate extensions which are permissible to appear on End-Entity Certificates.
This object set has the following members:
| &id | &oid | &Type | &encoding |
|---|---|---|---|
SP
|
id-specimenPoison | NULL | nullEncoding |
ID
|
id-securityProviderDataAuthorization |
DataAuthorization
This type is concretely parameterised with the following:
|
cuperEncoding |
| Other members may be added at runtime. | |||
Any envelope whose certificate chain contains, in any certificate, the Specimen Poison extension SHALL be considered a specimen, regardless of the value of any other specimen indicator in the envelope or its data elements.
Certificate Authorities SHALL include this extension when a certificate they issue is not to be used in production.
This is an object of the class: CERTIFICATE-EXTENSION
This object has the following field values:
SP
The Security Provider Data Authorisation extension specifies which Security Provider signed data elements are permitted in an envelope signed under the certificate, and which constraints apply to them. A certificate which contains no Security Provider Data Authorisation record places no restriction on the data elements of envelopes signed under it.
A Security Provider Data Authorisation record SHALL NOT contain more than one entry with the same format.
This is an object of the class: CERTIFICATE-EXTENSION
This object has the following field values:
ID
This type is concretely parameterised with the following:
This extension is placed in the X.509 certificate of an Issuing Certificate Authority, and contains its CA ID.
The Certificate ID of an Issuing Certificate Authority is the tuple of the Company Code contained in the
id-otherNameCompanyCode otherName of the Subject Alternative Name extension of its certificate, and the CA ID
contained in this extension. The Certificate ID SHALL uniquely identify a key pair within the BT4PT PKI.
An entity SHALL NOT assign the same CA ID to two different key pairs.
An End-Entity Certificate is issued by the Issuing Certificate Authority whose Certificate ID is equal to the
issuingOrg and caId of the End-Entity Certificate.
An Issuing Certificate Authority certificate MAY be re-issued with updated metadata (for example, changed Security Provider Data Authorisation) whilst retaining the same Certificate ID, provided that the public key is unchanged.
This is an object of the class: CERTIFICATE-EXTENSION
This object has the following field values:
This type is constrained in the following way:
The value must be greater than or equal to:
1
The value must be less than or equal to:
65536
The Revocation Notice informs inspection staff and Ticket Inspection Devices of the reason for the revocation of a certificate, and of how envelopes signed under it are to be treated. It consists of a coded reason, a coded action, and an optional notice in one or more languages to be displayed to inspection staff.
Every entry of a Certificate Revocation List SHALL contain exactly one Revocation Notice.
Certificate Authorities SHALL include a textual notice in localisedNotices when the circumstances of revocation
warrant further explanation to ticket control staff. The textual notice SHOULD be provided in the predominant
languages of the area in which envelopes relating to this revocation are likely to be encountered. Where the coded
reason and action convey all the necessary information, localisedNotices MAY be empty.
This sequence contains the following fields:
The reason for the revocation, as it is to be presented to inspection staff. Ticket Inspection Devices SHOULD display a description of this reason in the language of the inspection staff.
The action to be taken by inspection staff, or a Ticket Inspection Device, upon the inspection of an envelope signed under the revoked certificate.
This field, when unset, defaults to the following value: reject
The end of the period during which the action applies. This field SHALL be present if, and only if, action
is acceptUntil.
Each entry in localisedNotices SHOULD convey the same information in a different language.
This field MAY be empty if the circumstances are described entirely by the above fields.
The Ticket Inspection Device selects which language, of those provided, is most appropriate to be displayed.
The reason for the revocation of a certificate, as presented to inspection staff.
The values 1 to 3 are aligned with the HotListStatusCode of . Other values below 64 are reserved
for alignment with .
The value of this enumeration may have one of the following values:
Value:
0
No reason is given.
Value:
1
The reason is undefined. This variant can be used when the circumstances are described entirely by the localised notices.
Value:
2
A Hardware Security Module, or other device holding the private key, has been stolen.
Value:
3
A Hardware Security Module, or other device holding the private key, has been lost.
Value:
64
The private key is known, or suspected, to have been exposed.
Value:
65
Envelopes were issued fraudulently under the certificate.
Value:
66
The certificate was used outside of its authorisation.
Value:
67
The certificate was issued in error, for example with an incorrect Security Provider Data Authorisation.
Value:
68
The evidence of resistance of a Hardware Security Module holding the private key was withdrawn, or a component not meeting the requirements of this standard was used.
Value:
69
The issuer or Security Provider has ceased to operate, or its contract or authorisation has ended.
Value:
70
The certificate is revoked pending further investigation.
Value:
71
The key has been retired in the normal course of operations, with no security concern.
The action to be taken upon the inspection of an envelope signed under a revoked certificate.
The value of this enumeration may have one of the following values:
Value:
0
The envelope is not to be accepted.
Value:
1
The envelope is to be accepted if the traveller presents proof of purchase, such as a receipt or booking confirmation.
Value:
2
The envelope is to be accepted if the identity of the traveller matches that of the booking.
Value:
3
The envelope is to be accepted, and its details recorded and referred to the issuer.
Value:
4
The envelope is to be accepted until the actionEnd of the Revocation Notice, and not accepted thereafter.
Value:
5
The envelope is not to be accepted, and the ticket on which it is presented is to be retained, for example in the case of a ticket on secure paper.
This is an object of the class: CERTIFICATE-EXTENSION
This object has the following field values:
The Last Known-good Signature Counter allows the revocation of a key held in a Hardware Security Module only into the future. This permits, for example, a Hardware Security Module that is known to have been stolen to be revoked, without invalidating the legitimate envelopes it signed before it was stolen.
This extension SHALL only be used in a Certificate Revocation List for End-Entity Certificates.
This extension SHALL NOT be used when there is evidence a private key has been extracted from a HSM. It is only suitable to use when the private key is still secured within the HSM, but the HSM is in malicious hands.
When an End-Entity Certificate is listed on a Certificate Revocation List with this extension, an envelope signed
under it SHALL be considered not revoked if, and only if, its Security Provider signed data contains an HSM Trace
data element whose hsmId is equal to that of this extension, and whose signatureCounter, interpreted as a
big-endian unsigned integer, is less than or equal to that of this extension. All other envelopes signed under that
certificate SHALL be considered revoked.
Before including this extension in a Certificate Revocation List, the Certificate Authority SHALL establish, based on evidence provided by the Security Provider, a counter value below which signatures can reasonably be considered to have been generated whilst the Hardware Security Module was under the legitimate control of the Security Provider. The last observed or reported signature counter value SHALL NOT, on its own, be considered sufficient evidence that all signatures up to that value were legitimately generated, except as specified for Revocation Requests in . The Certificate Authority SHALL consider the records of signing operations, the history of authorisation grants, the circumstances of the loss or theft of the Hardware Security Module, and any other relevant evidence.
The Certificate Authority MAY select a lower counter value than the highest value supported by the available evidence, to account for uncertainty about the circumstances of the incident.
Where the Certificate Authority cannot establish a counter value for which it has reasonable confidence that signatures up to that value were legitimately generated, it SHALL NOT use this extension.
The Certificate Authority SHALL document the evidence used to establish the Last Known-good Signature Counter and SHALL retain this evidence as part of its certificate revocation records.
This sequence contains the following fields:
This type is constrained in the following way:
The length of the value must exactly:
8
The maximum value to accept for the signature counter.
This type is constrained in the following way:
The length of the value must exactly:
4
This is an object of the class: CERTIFICATE-EXTENSION
This object has the following field values:
The Online Validation Required Marker indicates that the private key corresponding to the revoked certificate is likely compromised, but that envelopes signed under it might nonetheless be legitimate. This extension instructs Ticket Inspection Devices to perform an online check against a ticket control database before accepting an envelope, instead of outright rejecting such envelopes.
When there is a high risk of inconvenience to the travelling public by revocation, a CA SHALL use this extension. This situation arises, for example, when a key has been used to issue many paper tickets whose barcodes cannot now be updated.
This is an object of the class: CERTIFICATE-EXTENSION
This object has the following field values:
This Extended Key Usage is placed in the X.509 certificate of a Trust Anchor. A Relying Party SHALL NOT accept a certificate as a valid point to end the validation chain on unless it is both a Trust Anchor in its Trust Store and it contains this EKU.
This Extended Key Usage is placed in the X.509 certificate directly issuing End-Entity Certificates. A Relying Party SHALL NOT accept an End-Entity Certificate unless it is issued by a certificate containing this Extended Key Usage.
This OID is used in the X.509 GeneralName.otherName to signify a DER-encoded CompanyCode.
It is to be used in either the Subject Alternative Name or Issuer Alternative Name X.509 extensions.
By including this OID in an X.509 certificate's Certificate Policies, the issuer is asserting conformance and adherence to the common certificate baseline defined by BT4PT.
This extension is placed in a Key Agreement Certificate, and contains its Key ID.
The Key Agreement Key ID of a Key Agreement Certificate is the tuple of the Company Code contained in the
id-otherNameCompanyCode otherName of the Subject Alternative Name extension of the certificate, and the Key
ID contained in this extension. It is the value used as the RecipientKey of encrypted data.
The Key Agreement Key ID SHALL uniquely identify a key pair within the BT4PT PKI. A Security Provider SHALL NOT
assign the same Key ID to two different key pairs.
A Key Agreement Certificate MAY be re-issued with updated metadata whilst retaining the same Key Agreement Key ID, provided that the public key is unchanged.
This is an object of the class: CERTIFICATE-EXTENSION
This object has the following field values:
This type is constrained in the following way:
The value must be greater than or equal to:
1
The value must be less than or equal to:
65536
This Extended Key Usage is placed in a Key Agreement Certificate, and indicates that the certified X25519 key is to be used for the encryption of data to its holder, as specified in . An issuer of envelopes SHALL NOT encrypt data to a key whose certificate does not contain this Extended Key Usage.
This Extended Key Usage is placed in a Key Agreement Certificate, in addition to id-keyAgreementKeyPurpose, and indicates that the certified X25519 key is to be used for the encryption of the keys of Time-Based One-Time Passwords to its holder, as specified in . A Security Provider SHALL NOT encrypt a Time-Based One-Time Password Key element to a key whose certificate does not contain this Extended Key Usage.
Any party holding the private key of such a certificate is able to generate the passwords of every envelope whose key has been encrypted to it. A Security Provider SHOULD therefore request this Extended Key Usage only for a key pair whose private key is held only in Hardware Security Modules and Secure Elements, as specified for key agreement private keys in , and SHOULD NOT request it for a key pair used for the decryption of any other data.
The location of the Certificate Revocation List covering the End-Entity Certificates issued by the Certificate Authority, and the Key Agreement Certificates it has issued. That is, it is not the CRL covering the certificate itself, but the complete CRL for all subordinate certificates directly issued by the given certificate. The file at the URL SHALL be openly accessible on the Internet without any authentication, free of charge.
The location of the Certificate Authority Manifest, in the format of version 1.0 CA Manifest, as specified in . The file at the URL, as well as any URLs referenced in the CA Manifest, SHALL be openly accessible on the Internet without any authentication, free of charge.
The location at which the Certificate Authority accepts Revocation Requests for the End-Entity Certificates it has issued, as specified in .
This extension contains the End-Entity Certificate to which an End-Entity Precertificate corresponds, encoded with the Canonical Aligned Packed Encoding Rules exactly as it is carried in envelopes, as specified in . This extension SHALL NOT be marked critical, and SHALL NOT appear in any certificate other than an End-Entity Precertificate.
This is an object of the class: CERTIFICATE-EXTENSION
This object has the following field values: