Created
March 14, 2022 15:16
-
-
Save awakecoding/61498c36edcbb980e59b4b4401816778 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Certificate ::= SEQUENCE { | |
tbsCertificate TBSCertificate, | |
signatureAlgorithm AlgorithmIdentifier, | |
signature BIT STRING } | |
| |
TBSCertificate ::= SEQUENCE { | |
version [0] Version DEFAULT v1, | |
serialNumber CertificateSerialNumber, | |
signature AlgorithmIdentifier, | |
issuer Name, | |
validity Validity, | |
subject Name, | |
subjectPublicKeyInfo SubjectPublicKeyInfo, | |
issuerUniqueID [1] IMPLICIT UniqueIdentifier OPTIONAL, | |
-- If present, version MUST be v2 or v3 | |
subjectUniqueID [2] IMPLICIT UniqueIdentifier OPTIONAL, | |
-- If present, version MUST be v2 or v3 | |
extensions [3] Extensions OPTIONAL | |
-- If present, version MUST be v3 -- } | |
| |
Version ::= INTEGER { v1(0), v2(1), v3(2) } | |
| |
CertificateSerialNumber ::= INTEGER | |
| |
Validity ::= SEQUENCE { | |
notBefore Time, | |
notAfter Time } | |
| |
Time ::= CHOICE { | |
utcTime UTCTime, | |
generalTime GeneralizedTime } | |
| |
UniqueIdentifier ::= BIT STRING | |
| |
SubjectPublicKeyInfo ::= SEQUENCE { | |
algorithm AlgorithmIdentifier, | |
subjectPublicKey BIT STRING } | |
| |
Extensions ::= SEQUENCE SIZE (1..MAX) OF Extension | |
| |
Extension ::= SEQUENCE { | |
extnID OBJECT IDENTIFIER, | |
critical BOOLEAN DEFAULT FALSE, | |
extnValue OCTET STRING | |
-- contains the DER encoding of an ASN.1 value | |
-- corresponding to the extension type identified | |
-- by extnID | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment