OLD | NEW |
1 This is a very basic TBSCertificate. It is valid from the perspective of | 1 This is a very basic TBSCertificate. It is valid from the perspective of |
2 ParseTbsCertificate(), however its sub-fields are mainly bogus. This | 2 ParseTbsCertificate(), however its sub-fields are mainly bogus. This |
3 TBSCertificate contains no optional fields (no issuerUniqueID, subjectUniqueID, | 3 TBSCertificate contains no optional fields (no issuerUniqueID, subjectUniqueID, |
4 extensions) | 4 extensions) |
5 | 5 |
6 | 6 |
7 | 7 |
8 -----BEGIN TBS CERTIFICATE----- | 8 -----BEGIN TBS CERTIFICATE----- |
9 MCGgAwIBAgIBATADBAEBMAMEAQUwAwQBCDADBAEKMAMEAfM= | 9 MDygAwIBAgIBATADBAEBMAMEAQUwHhcNMTIxMDE4MDMxMjAwWhcNMTMxMDE4MTQ1OTU5WjADBAG |
| 10 DMAMEAfM= |
10 -----END TBS CERTIFICATE----- | 11 -----END TBS CERTIFICATE----- |
11 | 12 |
12 $ openssl asn1parse -i < [TBS CERTIFICATE] | 13 $ openssl asn1parse -i < [TBS CERTIFICATE] |
13 0:d=0 hl=2 l= 33 cons: SEQUENCE | 14 0:d=0 hl=2 l= 60 cons: SEQUENCE |
14 2:d=1 hl=2 l= 3 cons: cont [ 0 ] | 15 2:d=1 hl=2 l= 3 cons: cont [ 0 ] |
15 4:d=2 hl=2 l= 1 prim: INTEGER :02 | 16 4:d=2 hl=2 l= 1 prim: INTEGER :02 |
16 7:d=1 hl=2 l= 1 prim: INTEGER :01 | 17 7:d=1 hl=2 l= 1 prim: INTEGER :01 |
17 10:d=1 hl=2 l= 3 cons: SEQUENCE | 18 10:d=1 hl=2 l= 3 cons: SEQUENCE |
18 12:d=2 hl=2 l= 1 prim: OCTET STRING [HEX DUMP]:01 | 19 12:d=2 hl=2 l= 1 prim: OCTET STRING [HEX DUMP]:01 |
19 15:d=1 hl=2 l= 3 cons: SEQUENCE | 20 15:d=1 hl=2 l= 3 cons: SEQUENCE |
20 17:d=2 hl=2 l= 1 prim: OCTET STRING [HEX DUMP]:05 | 21 17:d=2 hl=2 l= 1 prim: OCTET STRING [HEX DUMP]:05 |
21 20:d=1 hl=2 l= 3 cons: SEQUENCE | 22 20:d=1 hl=2 l= 30 cons: SEQUENCE |
22 22:d=2 hl=2 l= 1 prim: OCTET STRING [HEX DUMP]:08 | 23 22:d=2 hl=2 l= 13 prim: UTCTIME :121018031200Z |
23 25:d=1 hl=2 l= 3 cons: SEQUENCE | 24 37:d=2 hl=2 l= 13 prim: UTCTIME :131018145959Z |
24 27:d=2 hl=2 l= 1 prim: OCTET STRING : | 25 52:d=1 hl=2 l= 3 cons: SEQUENCE |
25 | 26 54:d=2 hl=2 l= 1 prim: OCTET STRING [HEX DUMP]:83 |
26 30:d=1 hl=2 l= 3 cons: SEQUENCE | 27 57:d=1 hl=2 l= 3 cons: SEQUENCE |
27 32:d=2 hl=2 l= 1 prim: OCTET STRING [HEX DUMP]:F3 | 28 59:d=2 hl=2 l= 1 prim: OCTET STRING [HEX DUMP]:F3 |
28 | 29 |
29 | 30 |
30 | 31 |
31 -----BEGIN SERIAL NUMBER----- | 32 -----BEGIN SERIAL NUMBER----- |
32 AQ== | 33 AQ== |
33 -----END SERIAL NUMBER----- | 34 -----END SERIAL NUMBER----- |
34 | 35 |
35 | 36 |
36 | 37 |
37 -----BEGIN SIGNATURE ALGORITHM----- | 38 -----BEGIN SIGNATURE ALGORITHM----- |
38 MAMEAQE= | 39 MAMEAQE= |
39 -----END SIGNATURE ALGORITHM----- | 40 -----END SIGNATURE ALGORITHM----- |
40 | 41 |
41 $ openssl asn1parse -i < [SIGNATURE ALGORITHM] | 42 $ openssl asn1parse -i < [SIGNATURE ALGORITHM] |
42 0:d=0 hl=2 l= 3 cons: SEQUENCE | 43 0:d=0 hl=2 l= 3 cons: SEQUENCE |
43 2:d=1 hl=2 l= 1 prim: OCTET STRING [HEX DUMP]:01 | 44 2:d=1 hl=2 l= 1 prim: OCTET STRING [HEX DUMP]:01 |
44 | 45 |
45 | 46 |
46 | 47 |
47 -----BEGIN ISSUER----- | 48 -----BEGIN ISSUER----- |
48 MAMEAQU= | 49 MAMEAQU= |
49 -----END ISSUER----- | 50 -----END ISSUER----- |
50 | 51 |
51 $ openssl asn1parse -i < [ISSUER] | 52 $ openssl asn1parse -i < [ISSUER] |
52 0:d=0 hl=2 l= 3 cons: SEQUENCE | 53 0:d=0 hl=2 l= 3 cons: SEQUENCE |
53 2:d=1 hl=2 l= 1 prim: OCTET STRING [HEX DUMP]:05 | 54 2:d=1 hl=2 l= 1 prim: OCTET STRING [HEX DUMP]:05 |
54 | 55 |
55 | 56 |
56 | 57 |
57 -----BEGIN VALIDITY----- | 58 -----BEGIN VALIDITY NOTBEFORE----- |
58 MAMEAQg= | 59 eWVhcj0yMDEyLCBtb250aD0xMCwgZGF5PTE4LCBob3Vycz0zLCBtaW51dGVzPTEyLCBzZWNvbmR |
59 -----END VALIDITY----- | 60 zPTA= |
| 61 -----END VALIDITY NOTBEFORE----- |
60 | 62 |
61 $ openssl asn1parse -i < [VALIDITY] | 63 VALIDITY NOTBEFORE: year=2012, month=10, day=18, hours=3, minutes=12, seconds=0 |
62 0:d=0 hl=2 l= 3 cons: SEQUENCE | 64 |
63 2:d=1 hl=2 l= 1 prim: OCTET STRING [HEX DUMP]:08 | 65 |
| 66 |
| 67 -----BEGIN VALIDITY NOTAFTER----- |
| 68 eWVhcj0yMDEzLCBtb250aD0xMCwgZGF5PTE4LCBob3Vycz0xNCwgbWludXRlcz01OSwgc2Vjb25 |
| 69 kcz01OQ== |
| 70 -----END VALIDITY NOTAFTER----- |
| 71 |
| 72 VALIDITY NOTAFTER: year=2013, month=10, day=18, hours=14, minutes=59, seconds=59 |
64 | 73 |
65 | 74 |
66 | 75 |
67 -----BEGIN SUBJECT----- | 76 -----BEGIN SUBJECT----- |
68 MAMEAQo= | 77 MAMEAYM= |
69 -----END SUBJECT----- | 78 -----END SUBJECT----- |
70 | 79 |
71 $ openssl asn1parse -i < [SUBJECT] | 80 $ openssl asn1parse -i < [SUBJECT] |
72 0:d=0 hl=2 l= 3 cons: SEQUENCE | 81 0:d=0 hl=2 l= 3 cons: SEQUENCE |
73 2:d=1 hl=2 l= 1 prim: OCTET STRING : | 82 2:d=1 hl=2 l= 1 prim: OCTET STRING [HEX DUMP]:83 |
74 | 83 |
75 | 84 |
76 | 85 |
77 -----BEGIN SPKI----- | 86 -----BEGIN SPKI----- |
78 MAMEAfM= | 87 MAMEAfM= |
79 -----END SPKI----- | 88 -----END SPKI----- |
80 | 89 |
81 $ openssl asn1parse -i < [SPKI] | 90 $ openssl asn1parse -i < [SPKI] |
82 0:d=0 hl=2 l= 3 cons: SEQUENCE | 91 0:d=0 hl=2 l= 3 cons: SEQUENCE |
83 2:d=1 hl=2 l= 1 prim: OCTET STRING [HEX DUMP]:F3 | 92 2:d=1 hl=2 l= 1 prim: OCTET STRING [HEX DUMP]:F3 |
OLD | NEW |