1 This is a valid certificate from the perspective of ParseCertificate().
5 -----BEGIN CERTIFICATE-----
6 MBAwBgUAMAIFADACBQADAgCs
7 -----END CERTIFICATE-----
9 $ openssl asn1parse -i < [CERTIFICATE]
10 0:d=0 hl=2 l= 16 cons: SEQUENCE
11 2:d=1 hl=2 l= 6 cons: SEQUENCE
12 4:d=2 hl=2 l= 0 prim: NULL
13 6:d=2 hl=2 l= 2 cons: SEQUENCE
14 8:d=3 hl=2 l= 0 prim: NULL
15 10:d=1 hl=2 l= 2 cons: SEQUENCE
16 12:d=2 hl=2 l= 0 prim: NULL
17 14:d=1 hl=2 l= 2 prim: BIT STRING
21 -----BEGIN TBS CERTIFICATE-----
23 -----END TBS CERTIFICATE-----
25 $ openssl asn1parse -i < [TBS CERTIFICATE]
26 0:d=0 hl=2 l= 6 cons: SEQUENCE
27 2:d=1 hl=2 l= 0 prim: NULL
28 4:d=1 hl=2 l= 2 cons: SEQUENCE
29 6:d=2 hl=2 l= 0 prim: NULL
33 -----BEGIN SIGNATURE ALGORITHM-----
35 -----END SIGNATURE ALGORITHM-----
37 $ openssl asn1parse -i < [SIGNATURE ALGORITHM]
38 0:d=0 hl=2 l= 2 cons: SEQUENCE
39 2:d=1 hl=2 l= 0 prim: NULL
43 -----BEGIN SIGNATURE-----
45 -----END SIGNATURE-----