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

Unified Diff: net/data/parse_certificate_unittest/serial_37_bytes.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
« no previous file with comments | « net/cert/x509_certificate_unittest.cc ('k') | net/data/parse_certificate_unittest/serial_negative.pem » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/data/parse_certificate_unittest/serial_37_bytes.pem
diff --git a/net/data/parse_certificate_unittest/serial_37_bytes.pem b/net/data/parse_certificate_unittest/serial_37_bytes.pem
new file mode 100644
index 0000000000000000000000000000000000000000..3a52b08a70cdef0e28baa1004503297ae85598bf
--- /dev/null
+++ b/net/data/parse_certificate_unittest/serial_37_bytes.pem
@@ -0,0 +1,13 @@
+This cert has an invalid serial number which has is 37 bytes long (should be
+<=20 bytes long).
+
+The certificate data can be updated/regenerated with the
+net/data/parse_certificate_unittest/regenerate_pem_from_ascii.py script.
+
+#-----BEGIN SERIAL-----
+ INTEGER { `0102030405060708090a0b0c0d0e0f101112131415161718191a1b1c1d1e1f202122232425` }
+#-----END SERIAL-----
+
+-----BEGIN CERTIFICATE-----
+MIICdDCCAd2gAwIBAgIlAQIDBAUGBwgJCgsMDQ4PEBESExQVFhcYGRobHB0eHyAhIiMkJTANBgkqhkiG9w0BAQUFADBFMQswCQYDVQQGEwJBVTETMBEGA1UECAwKU29tZS1TdGF0ZTEhMB8GA1UECgwYSW50ZXJuZXQgV2lkZ2l0cyBQdHkgTHRkMB4XDTE0MDQyMzIwNTA0MFoXDTE3MDQyMjIwNTA0MFowRTELMAkGA1UEBhMCQVUxEzARBgNVBAgMClNvbWUtU3RhdGUxITAfBgNVBAoMGEludGVybmV0IFdpZGdpdHMgUHR5IEx0ZDCBnzANBgkqhkiG9w0BAQEFAAOBjQAwgYkCgYEA2CvIpjLkYv9N89CtWYtFp73xR78JWHsivTWulyWGlKCAwLQfdpFnRjHQEIS3Ih5wI5FyyOlteTqFd4APxJUWdcVKcUzIYz+j8mOcKk+a+svBcW4ohSigJx5lHK4H1VtvLUPtK5CxjK8kba7pFzoFwb+4HK5lOxtYwtmu1qpniPECAwEAAaNQME4wHQYDVR0OBBYEFIt11azLCL4OH2W3+la+bKd12oWvMB8GA1UdIwQYMBaAFIt11azLCL4OH2W3+la+bKd12oWvMAwGA1UdEwQFMAMBAf8wDQYJKoZIhvcNAQEFBQADgYEAO+h4bZXWPWr3ExksG8KIriKr9I0y9XxxZ88t0RzCw4fi6b6JXOQ0q0iRwj+VritHniV4a0+aEKRy/c/3AgywCgikWuLldH4RHTlgaskfafMuYybcnu9regrhVFeYqnKReAR+H49lTR8LEqycJA+EFBpVLR+78J0JsghcWTJlgCY=
+-----END CERTIFICATE-----
« no previous file with comments | « net/cert/x509_certificate_unittest.cc ('k') | net/data/parse_certificate_unittest/serial_negative.pem » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698