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

Unified Diff: net/data/cert_source_static_unittest/root.pem

Issue 2030693002: Add CertIssuerSource interface and CertIssuerSourceStatic implementation. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@cert-parsing-base
Patch Set: . Created 4 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/cert_source_static_unittest/root.pem
diff --git a/net/data/cert_source_static_unittest/root.pem b/net/data/cert_source_static_unittest/root.pem
new file mode 100644
index 0000000000000000000000000000000000000000..b350acef5a6a4a7b92cb4a73909abd216be98e2f
--- /dev/null
+++ b/net/data/cert_source_static_unittest/root.pem
@@ -0,0 +1,110 @@
+Certificates for testing issuer lookup.
+
+ Root
+ /| |
+ / | |
+ / | |
+ v v v
+ B1 b1 B2
+ |\/| |
+ |/\| |
+ v v v
+ C C' C''
+
+B1 and b1 have the same key, and their subjects are also equal (after
+normalization).
+
+C, C', and C'' all have the same subject but different keys (doesn't matter for
+this test).
+
+C and C' should chain up through both B1 and b1, since they have the same key
+and the names are equal after normalization.
+
+Certificate:
+ Data:
+ Version: 3 (0x2)
+ Serial Number: 1 (0x1)
+ Signature Algorithm: sha256WithRSAEncryption
+ Issuer: CN=Root
+ Validity
+ Not Before: Jan 1 12:00:00 2015 GMT
+ Not After : Jan 1 12:00:00 2016 GMT
+ Subject: CN=Root
+ Subject Public Key Info:
+ Public Key Algorithm: rsaEncryption
+ Public-Key: (2048 bit)
+ Modulus:
+ 00:ba:2a:cf:f5:28:51:9f:2e:69:20:ae:cb:c6:27:
+ f0:dc:fc:d2:46:b8:5d:f8:a0:7d:b3:7f:5a:a2:46:
+ d5:8e:4d:9b:55:71:14:6d:2e:38:35:c5:58:6a:b1:
+ cb:a4:0e:71:05:87:59:98:e2:aa:ec:c2:26:1a:e4:
+ a7:26:3b:c5:b7:b1:15:e6:be:f1:08:17:e3:6b:d3:
+ b9:5a:43:fa:82:cc:bd:59:30:1c:bb:fd:91:48:ff:
+ e7:38:0d:db:bd:7e:dc:c2:0e:17:3d:e3:ff:f8:e6:
+ 56:dc:db:e5:49:6c:9d:a1:88:11:78:21:3d:75:65:
+ 6e:4f:aa:2c:38:cc:a5:14:fd:30:6e:cd:a7:c1:58:
+ b3:42:c6:67:c3:10:b0:72:36:59:bd:7d:07:2b:ef:
+ df:2d:e4:f8:e8:98:43:7b:7d:02:dc:1d:7c:78:52:
+ 27:02:33:ba:ba:ec:16:b6:04:ab:5f:16:6e:3f:0a:
+ 3a:b6:fb:aa:6e:d9:46:5f:25:0a:03:83:3c:37:92:
+ 1c:8f:78:9e:55:f1:29:60:4e:55:f3:93:17:37:84:
+ c5:c6:5b:4a:2c:3b:ec:63:de:77:6a:2f:52:e2:e3:
+ db:ed:c2:02:a5:b1:ce:d4:3b:4f:87:57:15:01:61:
+ fa:45:4c:6a:cd:dd:44:a4:b5:58:aa:fc:bf:6d:3e:
+ af:a5
+ Exponent: 65537 (0x10001)
+ X509v3 extensions:
+ X509v3 Subject Key Identifier:
+ 46:44:7C:EB:FB:2F:61:34:05:EE:41:88:E9:DB:9F:FD:F6:84:61:D4
+ X509v3 Authority Key Identifier:
+ keyid:46:44:7C:EB:FB:2F:61:34:05:EE:41:88:E9:DB:9F:FD:F6:84:61:D4
+
+ Authority Information Access:
+ CA Issuers - URI:http://url-for-aia/Root.cer
+
+ X509v3 CRL Distribution Points:
+
+ Full Name:
+ URI:http://url-for-crl/Root.crl
+
+ X509v3 Key Usage: critical
+ Certificate Sign, CRL Sign
+ X509v3 Basic Constraints: critical
+ CA:TRUE
+ Signature Algorithm: sha256WithRSAEncryption
+ 52:ce:80:2a:4b:0d:5c:b6:8e:d1:db:7c:36:9d:3d:37:6d:ef:
+ 4c:b4:2b:12:d2:53:46:1d:44:ab:45:74:7e:86:46:da:f9:28:
+ d1:fe:71:15:1d:b6:83:5a:95:c8:f1:4c:ba:84:4d:18:ed:4b:
+ 84:48:79:5e:56:e4:42:cc:74:04:6a:47:83:9a:6b:12:f4:a9:
+ 48:df:00:67:1b:2f:94:b3:b6:12:5c:29:c1:b7:3b:41:22:f3:
+ 1a:7d:af:06:b7:9a:da:0f:9a:c8:94:ba:b6:e1:dc:5f:04:cb:
+ 2d:2c:bb:60:0e:26:9c:3d:2f:0d:81:de:3c:96:a4:b6:98:44:
+ b7:0b:de:65:36:df:98:65:21:a8:bb:df:3d:31:14:e6:8e:9b:
+ 02:c9:3d:62:99:eb:2d:df:b7:a2:18:3a:bf:53:93:bc:e7:a1:
+ e2:04:35:34:29:07:f7:59:42:a7:15:e2:28:e9:29:31:a9:88:
+ 80:f8:8e:fb:dc:8e:9e:f1:33:c5:28:4f:7a:4e:86:84:d2:1b:
+ 27:ff:99:59:00:f4:2f:a6:14:f1:cd:1f:33:c5:62:d4:32:86:
+ 45:0b:57:03:64:9b:4e:fd:3e:95:9e:64:4d:f0:98:f0:29:34:
+ e1:c7:ee:9b:c5:48:22:67:5a:20:c5:09:98:63:08:4e:7b:72:
+ 92:dd:48:4e
+-----BEGIN CERTIFICATE-----
+MIIDZTCCAk2gAwIBAgIBATANBgkqhkiG9w0BAQsFADAPMQ0wCwYDVQQDDARSb290
+MB4XDTE1MDEwMTEyMDAwMFoXDTE2MDEwMTEyMDAwMFowDzENMAsGA1UEAwwEUm9v
+dDCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBALoqz/UoUZ8uaSCuy8Yn
+8Nz80ka4XfigfbN/WqJG1Y5Nm1VxFG0uODXFWGqxy6QOcQWHWZjiquzCJhrkpyY7
+xbexFea+8QgX42vTuVpD+oLMvVkwHLv9kUj/5zgN271+3MIOFz3j//jmVtzb5Uls
+naGIEXghPXVlbk+qLDjMpRT9MG7Np8FYs0LGZ8MQsHI2Wb19Byvv3y3k+OiYQ3t9
+AtwdfHhSJwIzurrsFrYEq18Wbj8KOrb7qm7ZRl8lCgODPDeSHI94nlXxKWBOVfOT
+FzeExcZbSiw77GPed2ovUuLj2+3CAqWxztQ7T4dXFQFh+kVMas3dRKS1WKr8v20+
+r6UCAwEAAaOByzCByDAdBgNVHQ4EFgQURkR86/svYTQF7kGI6duf/faEYdQwHwYD
+VR0jBBgwFoAURkR86/svYTQF7kGI6duf/faEYdQwNwYIKwYBBQUHAQEEKzApMCcG
+CCsGAQUFBzAChhtodHRwOi8vdXJsLWZvci1haWEvUm9vdC5jZXIwLAYDVR0fBCUw
+IzAhoB+gHYYbaHR0cDovL3VybC1mb3ItY3JsL1Jvb3QuY3JsMA4GA1UdDwEB/wQE
+AwIBBjAPBgNVHRMBAf8EBTADAQH/MA0GCSqGSIb3DQEBCwUAA4IBAQBSzoAqSw1c
+to7R23w2nT03be9MtCsS0lNGHUSrRXR+hkba+SjR/nEVHbaDWpXI8Uy6hE0Y7UuE
+SHleVuRCzHQEakeDmmsS9KlI3wBnGy+Us7YSXCnBtztBIvMafa8Gt5raD5rIlLq2
+4dxfBMstLLtgDiacPS8Ngd48lqS2mES3C95lNt+YZSGou989MRTmjpsCyT1imest
+37eiGDq/U5O856HiBDU0KQf3WUKnFeIo6SkxqYiA+I773I6e8TPFKE96ToaE0hsn
+/5lZAPQvphTxzR8zxWLUMoZFC1cDZJtO/T6VnmRN8JjwKTThx+6bxUgiZ1ogxQmY
+YwhOe3KS3UhO
+-----END CERTIFICATE-----

Powered by Google App Engine
This is Rietveld 408576698