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

Side by Side Diff: net/data/parse_certificate_unittest/tbs_v2_issuer_unique_id.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 version 2 certificate containing the issuer unique ID field.
2
3
4
5 -----BEGIN TBS CERTIFICATE-----
6 MCWgAwIBAQIBATADBAEBMAMEAQUwAwQBCDADBAEKMAMEAfOBAgC5
7 -----END TBS CERTIFICATE-----
8
9 $ openssl asn1parse -i < [TBS CERTIFICATE]
10 0:d=0 hl=2 l= 37 cons: SEQUENCE
11 2:d=1 hl=2 l= 3 cons: cont [ 0 ]
12 4:d=2 hl=2 l= 1 prim: INTEGER :01
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 :
22
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
27
28
29 -----BEGIN SERIAL NUMBER-----
30 AQ==
31 -----END SERIAL NUMBER-----
32
33
34
35 -----BEGIN SIGNATURE ALGORITHM-----
36 MAMEAQE=
37 -----END SIGNATURE ALGORITHM-----
38
39 $ openssl asn1parse -i < [SIGNATURE ALGORITHM]
40 0:d=0 hl=2 l= 3 cons: SEQUENCE
41 2:d=1 hl=2 l= 1 prim: OCTET STRING [HEX DUMP]:01
42
43
44
45 -----BEGIN ISSUER-----
46 MAMEAQU=
47 -----END ISSUER-----
48
49 $ openssl asn1parse -i < [ISSUER]
50 0:d=0 hl=2 l= 3 cons: SEQUENCE
51 2:d=1 hl=2 l= 1 prim: OCTET STRING [HEX DUMP]:05
52
53
54
55 -----BEGIN VALIDITY-----
56 MAMEAQg=
57 -----END VALIDITY-----
58
59 $ openssl asn1parse -i < [VALIDITY]
60 0:d=0 hl=2 l= 3 cons: SEQUENCE
61 2:d=1 hl=2 l= 1 prim: OCTET STRING [HEX DUMP]:08
62
63
64
65 -----BEGIN SUBJECT-----
66 MAMEAQo=
67 -----END SUBJECT-----
68
69 $ openssl asn1parse -i < [SUBJECT]
70 0:d=0 hl=2 l= 3 cons: SEQUENCE
71 2:d=1 hl=2 l= 1 prim: OCTET STRING :
72
73
74
75 -----BEGIN SPKI-----
76 MAMEAfM=
77 -----END SPKI-----
78
79 $ openssl asn1parse -i < [SPKI]
80 0:d=0 hl=2 l= 3 cons: SEQUENCE
81 2:d=1 hl=2 l= 1 prim: OCTET STRING [HEX DUMP]:F3
82
83
84
85 -----BEGIN ISSUER UNIQUE ID-----
86 uQ==
87 -----END ISSUER UNIQUE ID-----
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698