Created
July 25, 2016 07:41
-
-
Save Fingercomp/612444af071eb6999acd07f4539dddaf to your computer and use it in GitHub Desktop.
This file contains 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 = SEQUENCE { | |
version = EXPLICIT (Version = INTEGER {v1(0), v2(0), v3(2)}) DEFAULT v1, | |
serialNumber = CertificateSerialNumber = INTEGER, | |
signature = AlgorithmIdentifier = SEQUENCE { | |
algorithm = OBJECT IDENTIFIER, | |
parameters = ANY DEFINED BY algorithm OPTIONAL | |
}, | |
issuer = Name = CHOICE { | |
-- only one possibility for now -- | |
rdnSequence = RDNSequence = SEQUENCE OF RelativeDistinguishedName = SET SIZE (1..MAX) OF AttributeTypeAndValue = SEQUENCE { | |
type = AttributeType = OBJECT IDENTIFIER, | |
value = AttributeValue = ANY -- DEFINED BY AttributeType | |
} | |
}, | |
validity = Validity = SEQUENCE { | |
notBefore = Time = CHOICE { | |
utcTime = UTCTime, | |
generalTime = GeneralizedTime | |
}, | |
notAfter = Time = CHOICE { | |
utcTime = UTCTime, | |
generalTime = GeneralizedTime | |
} | |
}, | |
subject = Name = CHOICE { | |
-- only one possibility for now -- | |
rdnSequence = RDNSequence = SEQUENCE OF RelativeDistinguishedName = SET SIZE (1..MAX) OF AttributeTypeAndValue = SEQUENCE { | |
type = AttributeType = OBJECT IDENTIFIER, | |
value = AttributeValue = ANY -- DEFINED BY AttributeType | |
} | |
}, | |
subjectPublicKeyInfo = SubjectPublicKeyInfo = SEQUENCE { | |
algorithm = AlgorithmIdentifier = SEQUENCE { | |
algorithm = OBJECT IDENTIFIER, | |
parameters = ANY DEFINED BY algorithm OPTIONAL | |
}, | |
subjectPublicKey = BIT STRING | |
}, | |
issuerUniqueID = IMPLICIT (UniqueIdentifier = BIT STRING) OPTIONAL, | |
-- If present, version MUST be v2 or v3 | |
subjectUniqueID = IMPLICIT (UniqueIdentifier = BIT STRING) OPTIONAL, | |
-- If present, version MUST be v2 or v3 | |
extensions = EXPLICIT (Extensions = SEQUENCE SIZE (1..MAX) OF 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 | |
}) OPTIONAL | |
-- If present, version MUST be v3 | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment