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

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

Issue 1658693006: Normalize the PEM format used in some certificate test data. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 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
1 This is a TBSCertificate which has a serial number that is 26 octets long. This 1 This is a TBSCertificate which has a serial number that is 26 octets long. This
2 violates RFC 5280. 2 violates RFC 5280.
3 3
4 4
5
6 -----BEGIN TBS CERTIFICATE-----
7 MFWgAwIBAAIaQsg8eFVS5Dkn5IvhKA+iD5+wj0f5RMMmaPkwAwQBATADBAEFMB4XDTEyMTAxODA
8 zMTIwMFoXDTEzMTAxODE0NTk1OVowAwQBgzADBAHz
9 -----END TBS CERTIFICATE-----
10
11 $ openssl asn1parse -i < [TBS CERTIFICATE] 5 $ openssl asn1parse -i < [TBS CERTIFICATE]
12 0:d=0 hl=2 l= 85 cons: SEQUENCE 6 0:d=0 hl=2 l= 85 cons: SEQUENCE
13 2:d=1 hl=2 l= 3 cons: cont [ 0 ] 7 2:d=1 hl=2 l= 3 cons: cont [ 0 ]
14 4:d=2 hl=2 l= 1 prim: INTEGER :00 8 4:d=2 hl=2 l= 1 prim: INTEGER :00
15 7:d=1 hl=2 l= 26 prim: INTEGER :42C83C785552E43927E48BE1280FA20 F9FB08F47F944C32668F9 9 7:d=1 hl=2 l= 26 prim: INTEGER :42C83C785552E43927E48BE1280FA20 F9FB08F47F944C32668F9
16 35:d=1 hl=2 l= 3 cons: SEQUENCE 10 35:d=1 hl=2 l= 3 cons: SEQUENCE
17 37:d=2 hl=2 l= 1 prim: OCTET STRING [HEX DUMP]:01 11 37:d=2 hl=2 l= 1 prim: OCTET STRING [HEX DUMP]:01
18 40:d=1 hl=2 l= 3 cons: SEQUENCE 12 40:d=1 hl=2 l= 3 cons: SEQUENCE
19 42:d=2 hl=2 l= 1 prim: OCTET STRING [HEX DUMP]:05 13 42:d=2 hl=2 l= 1 prim: OCTET STRING [HEX DUMP]:05
20 45:d=1 hl=2 l= 30 cons: SEQUENCE 14 45:d=1 hl=2 l= 30 cons: SEQUENCE
21 47:d=2 hl=2 l= 13 prim: UTCTIME :121018031200Z 15 47:d=2 hl=2 l= 13 prim: UTCTIME :121018031200Z
22 62:d=2 hl=2 l= 13 prim: UTCTIME :131018145959Z 16 62:d=2 hl=2 l= 13 prim: UTCTIME :131018145959Z
23 77:d=1 hl=2 l= 3 cons: SEQUENCE 17 77:d=1 hl=2 l= 3 cons: SEQUENCE
24 79:d=2 hl=2 l= 1 prim: OCTET STRING [HEX DUMP]:83 18 79:d=2 hl=2 l= 1 prim: OCTET STRING [HEX DUMP]:83
25 82:d=1 hl=2 l= 3 cons: SEQUENCE 19 82:d=1 hl=2 l= 3 cons: SEQUENCE
26 84:d=2 hl=2 l= 1 prim: OCTET STRING [HEX DUMP]:F3 20 84:d=2 hl=2 l= 1 prim: OCTET STRING [HEX DUMP]:F3
21 -----BEGIN TBS CERTIFICATE-----
22 MFWgAwIBAAIaQsg8eFVS5Dkn5IvhKA+iD5+wj0f5RMMmaPkwAwQBATADBAEFMB4XDTEyMTAxODA
23 zMTIwMFoXDTEzMTAxODE0NTk1OVowAwQBgzADBAHz
24 -----END TBS CERTIFICATE-----
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698