Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(259)

Side by Side Diff: net/data/parse_certificate_unittest/tbs_v1.pem

Issue 1279963003: Add a function for parsing RFC 5280's "TBSCertificate". (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@cert_mapper
Patch Set: one more comment fix Created 5 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
1 This is a TBSCertificate which omits the version field (meaning it is v1).
2
3
4
5 -----BEGIN TBS CERTIFICATE-----
6 MBwCAQEwAwQBATADBAEFMAMEAQgwAwQBCjADBAHz
7 -----END TBS CERTIFICATE-----
8
9 $ openssl asn1parse -i < [TBS CERTIFICATE]
10 0:d=0 hl=2 l= 28 cons: SEQUENCE
11 2:d=1 hl=2 l= 1 prim: INTEGER :01
12 5:d=1 hl=2 l= 3 cons: SEQUENCE
13 7:d=2 hl=2 l= 1 prim: OCTET STRING [HEX DUMP]:01
14 10:d=1 hl=2 l= 3 cons: SEQUENCE
15 12:d=2 hl=2 l= 1 prim: OCTET STRING [HEX DUMP]:05
16 15:d=1 hl=2 l= 3 cons: SEQUENCE
17 17:d=2 hl=2 l= 1 prim: OCTET STRING [HEX DUMP]:08
18 20:d=1 hl=2 l= 3 cons: SEQUENCE
19 22:d=2 hl=2 l= 1 prim: OCTET STRING :
20
21 25:d=1 hl=2 l= 3 cons: SEQUENCE
22 27:d=2 hl=2 l= 1 prim: OCTET STRING [HEX DUMP]:F3
23
24
25
26 -----BEGIN SERIAL NUMBER-----
27 AQ==
28 -----END SERIAL NUMBER-----
29
30
31
32 -----BEGIN SIGNATURE ALGORITHM-----
33 MAMEAQE=
34 -----END SIGNATURE ALGORITHM-----
35
36 $ openssl asn1parse -i < [SIGNATURE ALGORITHM]
37 0:d=0 hl=2 l= 3 cons: SEQUENCE
38 2:d=1 hl=2 l= 1 prim: OCTET STRING [HEX DUMP]:01
39
40
41
42 -----BEGIN ISSUER-----
43 MAMEAQU=
44 -----END ISSUER-----
45
46 $ openssl asn1parse -i < [ISSUER]
47 0:d=0 hl=2 l= 3 cons: SEQUENCE
48 2:d=1 hl=2 l= 1 prim: OCTET STRING [HEX DUMP]:05
49
50
51
52 -----BEGIN VALIDITY-----
53 MAMEAQg=
54 -----END VALIDITY-----
55
56 $ openssl asn1parse -i < [VALIDITY]
57 0:d=0 hl=2 l= 3 cons: SEQUENCE
58 2:d=1 hl=2 l= 1 prim: OCTET STRING [HEX DUMP]:08
59
60
61
62 -----BEGIN SUBJECT-----
63 MAMEAQo=
64 -----END SUBJECT-----
65
66 $ openssl asn1parse -i < [SUBJECT]
67 0:d=0 hl=2 l= 3 cons: SEQUENCE
68 2:d=1 hl=2 l= 1 prim: OCTET STRING :
69
70
71
72 -----BEGIN SPKI-----
73 MAMEAfM=
74 -----END SPKI-----
75
76 $ openssl asn1parse -i < [SPKI]
77 0:d=0 hl=2 l= 3 cons: SEQUENCE
78 2:d=1 hl=2 l= 1 prim: OCTET STRING [HEX DUMP]:F3
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698