1 This is a version 3 TBSCertificate containing all the possible optional fields.
5 -----BEGIN TBS CERTIFICATE-----
6 MDCgAwIBAgIBATADBAEBMAMEAQUwAwQBCDADBAEKMAMEAfOBAgC5ggIAyqMFMAMEAd0=
7 -----END TBS CERTIFICATE-----
9 $ openssl asn1parse -i < [TBS CERTIFICATE]
10 0:d=0 hl=2 l= 48 cons: SEQUENCE
11 2:d=1 hl=2 l= 3 cons: cont [ 0 ]
12 4:d=2 hl=2 l= 1 prim: INTEGER :02
13 7:d=1 hl=2 l= 1 prim: INTEGER :01
14 10:d=1 hl=2 l= 3 cons: SEQUENCE
15 12:d=2 hl=2 l= 1 prim: OCTET STRING [HEX DUMP]:01
16 15:d=1 hl=2 l= 3 cons: SEQUENCE
17 17:d=2 hl=2 l= 1 prim: OCTET STRING [HEX DUMP]:05
18 20:d=1 hl=2 l= 3 cons: SEQUENCE
19 22:d=2 hl=2 l= 1 prim: OCTET STRING [HEX DUMP]:08
20 25:d=1 hl=2 l= 3 cons: SEQUENCE
21 27:d=2 hl=2 l= 1 prim: OCTET STRING :
23 30:d=1 hl=2 l= 3 cons: SEQUENCE
24 32:d=2 hl=2 l= 1 prim: OCTET STRING [HEX DUMP]:F3
25 35:d=1 hl=2 l= 2 prim: cont [ 1 ]
26 39:d=1 hl=2 l= 2 prim: cont [ 2 ]
27 43:d=1 hl=2 l= 5 cons: cont [ 3 ]
28 45:d=2 hl=2 l= 3 cons: SEQUENCE
29 47:d=3 hl=2 l= 1 prim: OCTET STRING [HEX DUMP]:DD
33 -----BEGIN SERIAL NUMBER-----
35 -----END SERIAL NUMBER-----
39 -----BEGIN SIGNATURE ALGORITHM-----
41 -----END SIGNATURE ALGORITHM-----
43 $ openssl asn1parse -i < [SIGNATURE ALGORITHM]
44 0:d=0 hl=2 l= 3 cons: SEQUENCE
45 2:d=1 hl=2 l= 1 prim: OCTET STRING [HEX DUMP]:01
49 -----BEGIN ISSUER-----
53 $ openssl asn1parse -i < [ISSUER]
54 0:d=0 hl=2 l= 3 cons: SEQUENCE
55 2:d=1 hl=2 l= 1 prim: OCTET STRING [HEX DUMP]:05
59 -----BEGIN VALIDITY-----
61 -----END VALIDITY-----
63 $ openssl asn1parse -i < [VALIDITY]
64 0:d=0 hl=2 l= 3 cons: SEQUENCE
65 2:d=1 hl=2 l= 1 prim: OCTET STRING [HEX DUMP]:08
69 -----BEGIN SUBJECT-----
73 $ openssl asn1parse -i < [SUBJECT]
74 0:d=0 hl=2 l= 3 cons: SEQUENCE
75 2:d=1 hl=2 l= 1 prim: OCTET STRING :
83 $ openssl asn1parse -i < [SPKI]
84 0:d=0 hl=2 l= 3 cons: SEQUENCE
85 2:d=1 hl=2 l= 1 prim: OCTET STRING [HEX DUMP]:F3
89 -----BEGIN ISSUER UNIQUE ID-----
91 -----END ISSUER UNIQUE ID-----
95 -----BEGIN SUBJECT UNIQUE ID-----
97 -----END SUBJECT UNIQUE ID-----
101 -----BEGIN EXTENSIONS-----
103 -----END EXTENSIONS-----
105 $ openssl asn1parse -i < [EXTENSIONS]
106 0:d=0 hl=2 l= 3 cons: SEQUENCE
107 2:d=1 hl=2 l= 1 prim: OCTET STRING [HEX DUMP]:DD