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

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

Issue 1288193003: Add a function for parsing RFC 5280's "Certificate". (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@test_helpers
Patch Set: rebase onto master 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" input to ParseCertificate(), however there is a tra iling NULL after the signature field.
2
3
4
5 -----BEGIN CERTIFICATE-----
6 MA4wAgUAMAIFAAMCAKwFAA==
7 -----END CERTIFICATE-----
8
9 $ openssl asn1parse -i < [CERTIFICATE]
10 0:d=0 hl=2 l= 14 cons: SEQUENCE
11 2:d=1 hl=2 l= 2 cons: SEQUENCE
12 4:d=2 hl=2 l= 0 prim: NULL
13 6:d=1 hl=2 l= 2 cons: SEQUENCE
14 8:d=2 hl=2 l= 0 prim: NULL
15 10:d=1 hl=2 l= 2 prim: BIT STRING
16 14:d=1 hl=2 l= 0 prim: NULL
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698