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

Unified 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 side-by-side diff with in-line comments
Download patch
Index: net/data/parse_certificate_unittest/tbs_negative_serial_number.pem
diff --git a/net/data/parse_certificate_unittest/tbs_negative_serial_number.pem b/net/data/parse_certificate_unittest/tbs_negative_serial_number.pem
deleted file mode 100644
index fb9a712618bd421aab416d340c9c808ed631bdac..0000000000000000000000000000000000000000
--- a/net/data/parse_certificate_unittest/tbs_negative_serial_number.pem
+++ /dev/null
@@ -1,68 +0,0 @@
-This is a valid TBSCertificate. However the Serial Number is negative (which
-strictly speaking is not correct).
-
-
-$ openssl asn1parse -i < [TBS CERTIFICATE]
- 0:d=0 hl=2 l= 67 cons: SEQUENCE
- 2:d=1 hl=2 l= 3 cons: cont [ 0 ]
- 4:d=2 hl=2 l= 1 prim: INTEGER :02
- 7:d=1 hl=2 l= 8 prim: INTEGER :-76E16F56FFFFCAC0
- 17:d=1 hl=2 l= 3 cons: SEQUENCE
- 19:d=2 hl=2 l= 1 prim: OCTET STRING [HEX DUMP]:01
- 22:d=1 hl=2 l= 3 cons: SEQUENCE
- 24:d=2 hl=2 l= 1 prim: OCTET STRING [HEX DUMP]:05
- 27:d=1 hl=2 l= 30 cons: SEQUENCE
- 29:d=2 hl=2 l= 13 prim: UTCTIME :121018031200Z
- 44:d=2 hl=2 l= 13 prim: UTCTIME :131018145959Z
- 59:d=1 hl=2 l= 3 cons: SEQUENCE
- 61:d=2 hl=2 l= 1 prim: OCTET STRING [HEX DUMP]:83
- 64:d=1 hl=2 l= 3 cons: SEQUENCE
- 66:d=2 hl=2 l= 1 prim: OCTET STRING [HEX DUMP]:F3
------BEGIN TBS CERTIFICATE-----
-MEOgAwIBAgIIiR6QqQAANUAwAwQBATADBAEFMB4XDTEyMTAxODAzMTIwMFoXDTEzMTAxODE0NTk
-1OVowAwQBgzADBAHz
------END TBS CERTIFICATE-----
-
------BEGIN SERIAL NUMBER-----
-iR6QqQAANUA=
------END SERIAL NUMBER-----
-
-$ openssl asn1parse -i < [SIGNATURE ALGORITHM]
- 0:d=0 hl=2 l= 3 cons: SEQUENCE
- 2:d=1 hl=2 l= 1 prim: OCTET STRING [HEX DUMP]:01
------BEGIN SIGNATURE ALGORITHM-----
-MAMEAQE=
------END SIGNATURE ALGORITHM-----
-
-$ openssl asn1parse -i < [ISSUER]
- 0:d=0 hl=2 l= 3 cons: SEQUENCE
- 2:d=1 hl=2 l= 1 prim: OCTET STRING [HEX DUMP]:05
------BEGIN ISSUER-----
-MAMEAQU=
------END ISSUER-----
-
-VALIDITY NOTBEFORE: year=2012, month=10, day=18, hours=3, minutes=12, seconds=0
------BEGIN VALIDITY NOTBEFORE-----
-eWVhcj0yMDEyLCBtb250aD0xMCwgZGF5PTE4LCBob3Vycz0zLCBtaW51dGVzPTEyLCBzZWNvbmR
-zPTA=
------END VALIDITY NOTBEFORE-----
-
-VALIDITY NOTAFTER: year=2013, month=10, day=18, hours=14, minutes=59, seconds=59
------BEGIN VALIDITY NOTAFTER-----
-eWVhcj0yMDEzLCBtb250aD0xMCwgZGF5PTE4LCBob3Vycz0xNCwgbWludXRlcz01OSwgc2Vjb25
-kcz01OQ==
------END VALIDITY NOTAFTER-----
-
-$ openssl asn1parse -i < [SUBJECT]
- 0:d=0 hl=2 l= 3 cons: SEQUENCE
- 2:d=1 hl=2 l= 1 prim: OCTET STRING [HEX DUMP]:83
------BEGIN SUBJECT-----
-MAMEAYM=
------END SUBJECT-----
-
-$ openssl asn1parse -i < [SPKI]
- 0:d=0 hl=2 l= 3 cons: SEQUENCE
- 2:d=1 hl=2 l= 1 prim: OCTET STRING [HEX DUMP]:F3
------BEGIN SPKI-----
-MAMEAfM=
------END SPKI-----

Powered by Google App Engine
This is Rietveld 408576698