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

Side by Side Diff: net/data/parse_certificate_unittest/tbs_v3_data_after_extensions.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 an otherwise valid TBSCertificate, except there is a NULL after the
2 extensions.
3
4
5
6 -----BEGIN TBS CERTIFICATE-----
7 MCqgAwIBAgIBATADBAEBMAMEAQUwAwQBCDADBAEKMAMEAfOjBTADBAHdBQA=
8 -----END TBS CERTIFICATE-----
9
10 $ openssl asn1parse -i < [TBS CERTIFICATE]
11 0:d=0 hl=2 l= 42 cons: SEQUENCE
12 2:d=1 hl=2 l= 3 cons: cont [ 0 ]
13 4:d=2 hl=2 l= 1 prim: INTEGER :02
14 7:d=1 hl=2 l= 1 prim: INTEGER :01
15 10:d=1 hl=2 l= 3 cons: SEQUENCE
16 12:d=2 hl=2 l= 1 prim: OCTET STRING [HEX DUMP]:01
17 15:d=1 hl=2 l= 3 cons: SEQUENCE
18 17:d=2 hl=2 l= 1 prim: OCTET STRING [HEX DUMP]:05
19 20:d=1 hl=2 l= 3 cons: SEQUENCE
20 22:d=2 hl=2 l= 1 prim: OCTET STRING [HEX DUMP]:08
21 25:d=1 hl=2 l= 3 cons: SEQUENCE
22 27:d=2 hl=2 l= 1 prim: OCTET STRING :
23
24 30:d=1 hl=2 l= 3 cons: SEQUENCE
25 32:d=2 hl=2 l= 1 prim: OCTET STRING [HEX DUMP]:F3
26 35:d=1 hl=2 l= 5 cons: cont [ 3 ]
27 37:d=2 hl=2 l= 3 cons: SEQUENCE
28 39:d=3 hl=2 l= 1 prim: OCTET STRING [HEX DUMP]:DD
29 42:d=1 hl=2 l= 0 prim: NULL
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698