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

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

Issue 2881023003: X509CertificateBytes: Allow invalid serial numbers for now. (Closed)
Patch Set: review changes 2 Created 3 years, 7 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 valid TBSCertificate. However the Serial Number is negative (which
2 strictly speaking is not correct).
3
4
5 $ openssl asn1parse -i < [TBS CERTIFICATE]
6 0:d=0 hl=2 l= 67 cons: SEQUENCE
7 2:d=1 hl=2 l= 3 cons: cont [ 0 ]
8 4:d=2 hl=2 l= 1 prim: INTEGER :02
9 7:d=1 hl=2 l= 8 prim: INTEGER :-76E16F56FFFFCAC0
10 17:d=1 hl=2 l= 3 cons: SEQUENCE
11 19:d=2 hl=2 l= 1 prim: OCTET STRING [HEX DUMP]:01
12 22:d=1 hl=2 l= 3 cons: SEQUENCE
13 24:d=2 hl=2 l= 1 prim: OCTET STRING [HEX DUMP]:05
14 27:d=1 hl=2 l= 30 cons: SEQUENCE
15 29:d=2 hl=2 l= 13 prim: UTCTIME :121018031200Z
16 44:d=2 hl=2 l= 13 prim: UTCTIME :131018145959Z
17 59:d=1 hl=2 l= 3 cons: SEQUENCE
18 61:d=2 hl=2 l= 1 prim: OCTET STRING [HEX DUMP]:83
19 64:d=1 hl=2 l= 3 cons: SEQUENCE
20 66:d=2 hl=2 l= 1 prim: OCTET STRING [HEX DUMP]:F3
21 -----BEGIN TBS CERTIFICATE-----
22 MEOgAwIBAgIIiR6QqQAANUAwAwQBATADBAEFMB4XDTEyMTAxODAzMTIwMFoXDTEzMTAxODE0NTk
23 1OVowAwQBgzADBAHz
24 -----END TBS CERTIFICATE-----
25
26 -----BEGIN SERIAL NUMBER-----
27 iR6QqQAANUA=
28 -----END SERIAL NUMBER-----
29
30 $ openssl asn1parse -i < [SIGNATURE ALGORITHM]
31 0:d=0 hl=2 l= 3 cons: SEQUENCE
32 2:d=1 hl=2 l= 1 prim: OCTET STRING [HEX DUMP]:01
33 -----BEGIN SIGNATURE ALGORITHM-----
34 MAMEAQE=
35 -----END SIGNATURE ALGORITHM-----
36
37 $ openssl asn1parse -i < [ISSUER]
38 0:d=0 hl=2 l= 3 cons: SEQUENCE
39 2:d=1 hl=2 l= 1 prim: OCTET STRING [HEX DUMP]:05
40 -----BEGIN ISSUER-----
41 MAMEAQU=
42 -----END ISSUER-----
43
44 VALIDITY NOTBEFORE: year=2012, month=10, day=18, hours=3, minutes=12, seconds=0
45 -----BEGIN VALIDITY NOTBEFORE-----
46 eWVhcj0yMDEyLCBtb250aD0xMCwgZGF5PTE4LCBob3Vycz0zLCBtaW51dGVzPTEyLCBzZWNvbmR
47 zPTA=
48 -----END VALIDITY NOTBEFORE-----
49
50 VALIDITY NOTAFTER: year=2013, month=10, day=18, hours=14, minutes=59, seconds=59
51 -----BEGIN VALIDITY NOTAFTER-----
52 eWVhcj0yMDEzLCBtb250aD0xMCwgZGF5PTE4LCBob3Vycz0xNCwgbWludXRlcz01OSwgc2Vjb25
53 kcz01OQ==
54 -----END VALIDITY NOTAFTER-----
55
56 $ openssl asn1parse -i < [SUBJECT]
57 0:d=0 hl=2 l= 3 cons: SEQUENCE
58 2:d=1 hl=2 l= 1 prim: OCTET STRING [HEX DUMP]:83
59 -----BEGIN SUBJECT-----
60 MAMEAYM=
61 -----END SUBJECT-----
62
63 $ openssl asn1parse -i < [SPKI]
64 0:d=0 hl=2 l= 3 cons: SEQUENCE
65 2:d=1 hl=2 l= 1 prim: OCTET STRING [HEX DUMP]:F3
66 -----BEGIN SPKI-----
67 MAMEAfM=
68 -----END SPKI-----
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698