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

Unified Diff: net/data/cert_source_static_unittest/c1_2.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/c1_2.pem
diff --git a/net/data/cert_source_static_unittest/c1_2.pem b/net/data/cert_source_static_unittest/c1_2.pem
new file mode 100644
index 0000000000000000000000000000000000000000..8a02eecb1a456156f26f63dcbdb52adb8efc2ca3
--- /dev/null
+++ b/net/data/cert_source_static_unittest/c1_2.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=b1
+ Validity
+ Not Before: Jan 1 12:00:00 2015 GMT
+ Not After : Jan 1 12:00:00 2016 GMT
+ Subject: CN=C
+ Subject Public Key Info:
+ Public Key Algorithm: rsaEncryption
+ Public-Key: (2048 bit)
+ Modulus:
+ 00:b1:e9:3a:2c:79:c6:82:3e:44:95:f8:72:af:3a:
+ f1:51:82:8d:2e:eb:d8:39:f2:3e:1c:29:48:ae:22:
+ 84:98:b6:7d:09:c3:1e:4b:15:eb:da:68:ce:94:34:
+ b7:f2:60:2a:91:ac:94:e5:cd:53:22:d6:4d:6b:16:
+ 59:a5:f4:5a:89:41:60:2e:86:37:e2:2f:42:2e:33:
+ a4:4b:0d:d0:e0:b9:2d:c4:07:a0:85:88:2a:3a:04:
+ 70:c7:89:6f:c1:73:e8:8b:ac:48:23:0e:7b:7d:a8:
+ 64:c8:3b:8d:a8:1c:6b:3f:69:c7:0b:b1:36:48:01:
+ c0:f1:4e:1f:13:2f:43:65:5b:f9:e9:33:c9:63:3a:
+ 66:8d:c1:a1:64:03:ea:24:f7:28:d3:8d:3f:46:c1:
+ 48:d1:2d:f4:0c:15:cb:37:7d:73:c0:16:24:ed:11:
+ 8d:ce:70:da:db:26:7b:39:01:aa:4b:7b:f6:d7:c2:
+ 76:72:65:64:0c:5f:d1:8f:6e:8c:26:7c:08:b9:3b:
+ 22:cb:f2:56:11:a1:d8:ab:3e:f8:df:2d:78:5a:e9:
+ 6b:ca:f8:3d:c1:12:48:f7:77:0e:6a:d3:6b:fc:65:
+ 5b:3c:5d:2d:e1:36:2d:5d:4e:70:f5:96:e0:11:26:
+ 03:75:95:2d:28:22:d7:ee:4a:35:48:99:80:61:77:
+ 82:99
+ Exponent: 65537 (0x10001)
+ X509v3 extensions:
+ X509v3 Subject Key Identifier:
+ 21:FA:F0:99:68:6C:B3:A1:84:0C:2E:2B:75:80:0A:CA:5C:44:1D:EF
+ X509v3 Authority Key Identifier:
+ keyid:31:8A:85:20:61:F8:26:EA:D1:DC:06:F9:70:B7:93:0B:9B:E1:65:A6
+
+ Authority Information Access:
+ CA Issuers - URI:http://url-for-aia/b1.cer
+
+ X509v3 CRL Distribution Points:
+
+ Full Name:
+ URI:http://url-for-crl/b1.crl
+
+ X509v3 Key Usage: critical
+ Digital Signature, Key Encipherment
+ X509v3 Extended Key Usage:
+ TLS Web Server Authentication, TLS Web Client Authentication
+ Signature Algorithm: sha256WithRSAEncryption
+ 41:c6:61:e6:03:2b:55:6b:4b:e7:bc:11:44:42:94:30:a1:63:
+ 14:68:8e:eb:58:81:68:35:97:de:09:75:c5:dd:1a:88:ae:98:
+ 15:78:73:15:b2:d4:f6:3e:a5:b0:8a:4d:47:2e:e5:14:e3:57:
+ 48:75:9a:a7:65:17:7b:80:83:aa:6b:10:d1:89:5b:4c:a5:70:
+ 88:a6:ab:22:d7:bf:9a:85:45:5b:38:19:80:ac:e1:d5:28:93:
+ 20:ec:db:11:2b:9d:ef:60:5f:ce:51:ba:37:62:8d:51:ff:81:
+ 1f:1d:92:63:29:54:a2:b6:60:7a:d8:5f:50:1a:47:db:ea:79:
+ 76:d7:5c:b6:75:c3:ed:b9:a9:3e:12:f3:ac:c4:04:03:5e:55:
+ c7:84:ae:6c:ed:61:85:ac:04:4c:9a:21:47:71:a9:df:3f:77:
+ 67:48:2a:44:10:da:cf:22:86:66:94:26:2f:5b:bd:9b:ec:0f:
+ 6b:4c:fb:06:32:8c:b7:b4:9e:b4:93:0c:a2:ca:c9:bb:46:a3:
+ bb:34:50:e9:59:7e:1f:f4:93:a3:2b:56:01:97:b3:90:be:cb:
+ fe:53:7f:7c:e8:b3:cb:06:fc:89:42:6f:6a:30:c5:21:74:41:
+ 39:c7:aa:c4:b5:e1:ee:5f:ba:a5:67:0b:a3:aa:b8:5a:8a:46:
+ 2e:f4:6c:86
+-----BEGIN CERTIFICATE-----
+MIIDajCCAlKgAwIBAgIBATANBgkqhkiG9w0BAQsFADANMQswCQYDVQQDDAJiMTAe
+Fw0xNTAxMDExMjAwMDBaFw0xNjAxMDExMjAwMDBaMAwxCjAIBgNVBAMMAUMwggEi
+MA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQCx6TosecaCPkSV+HKvOvFRgo0u
+69g58j4cKUiuIoSYtn0Jwx5LFevaaM6UNLfyYCqRrJTlzVMi1k1rFlml9FqJQWAu
+hjfiL0IuM6RLDdDguS3EB6CFiCo6BHDHiW/Bc+iLrEgjDnt9qGTIO42oHGs/accL
+sTZIAcDxTh8TL0NlW/npM8ljOmaNwaFkA+ok9yjTjT9GwUjRLfQMFcs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