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

Unified Diff: net/data/cert_source_static_unittest/c1_1.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_1.pem
diff --git a/net/data/cert_source_static_unittest/c1_1.pem b/net/data/cert_source_static_unittest/c1_1.pem
new file mode 100644
index 0000000000000000000000000000000000000000..3b42e4a508229d5bded6e5dc5db934c72bc0103b
--- /dev/null
+++ b/net/data/cert_source_static_unittest/c1_1.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:b4:f3:bc:36:09:0a:f4:e0:fe:e7:fc:53:3c:b8:
+ 82:ea:13:ec:6e:f0:c4:7d:9f:87:96:ab:e5:7d:e3:
+ 44:46:d3:0e:a5:ab:87:36:b4:13:9c:d2:ac:ff:1e:
+ b3:1e:76:1e:35:6d:05:00:17:73:e2:b7:3a:48:6c:
+ 31:1f:6a:9c:bc:62:b6:66:58:a4:2d:11:1f:7c:d6:
+ a1:e5:84:95:50:cb:90:1f:ae:b7:9e:6a:f8:1e:10:
+ a8:6d:b1:c3:9b:29:e0:83:f5:05:08:2a:cf:ad:d1:
+ b7:dd:9c:28:54:e5:2a:a4:f6:f7:c1:fe:ac:22:6e:
+ c4:7e:4d:4c:28:08:59:c8:1f:ec:01:85:d4:d4:6c:
+ 56:0a:ee:bd:3d:2b:53:d4:fb:3f:4f:fe:9c:fe:be:
+ a6:ba:23:40:5b:d8:53:8f:61:c5:0b:d4:d5:b0:e3:
+ 47:01:e1:f6:10:79:11:5e:de:48:61:d9:2b:6b:a8:
+ b1:a5:f7:ff:04:5e:69:ef:2e:06:2d:31:0b:5d:e2:
+ 20:cb:28:cc:1d:14:52:6f:6e:79:ef:55:a0:8a:74:
+ 73:d3:2a:aa:56:38:1f:be:cf:b1:c1:89:4f:67:27:
+ 12:97:91:ec:78:06:b7:c2:ff:24:99:6f:33:da:c8:
+ f7:a5:b0:96:91:f1:25:ce:4f:c5:5c:c5:ee:bb:83:
+ ce:fd
+ Exponent: 65537 (0x10001)
+ X509v3 extensions:
+ X509v3 Subject Key Identifier:
+ D4:A1:EA:0D:31:C6:5B:C2:4F:88:0D:83:06:91:33:E0:85:A3:EA:E8
+ X509v3 Authority Key Identifier:
+ keyid:9F:A5:89:1E:07:FA:47:6B:9C:CB:D2:A3:64:41:AB:79:39:8A:A6:13
+
+ 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
+ 6f:0f:81:48:80:d5:2e:c9:a0:8e:1a:8b:a7:af:ac:c3:73:de:
+ dc:10:04:f5:db:84:7d:3e:cd:3f:94:28:29:fc:47:ec:aa:5e:
+ cc:80:dd:78:82:58:72:82:aa:98:1e:ef:4a:75:a0:8b:9d:6b:
+ 2a:e2:55:3d:52:7b:be:2e:7c:ec:19:66:a7:ab:d3:22:ef:6c:
+ b7:6d:c8:91:00:fb:e0:20:df:ec:bc:89:ee:03:7e:5e:3d:71:
+ 0b:d0:42:86:68:88:c2:2d:7d:ad:82:a0:98:39:77:cb:a9:21:
+ 80:61:4b:92:79:70:f7:b8:df:32:51:be:46:67:cd:53:97:38:
+ 33:b2:e6:55:f7:4d:fc:25:2f:91:1e:ae:77:42:24:ab:d2:b2:
+ fb:45:27:55:f9:5f:42:db:25:fd:42:7a:04:68:cc:e8:1e:20:
+ 24:d4:ac:0f:91:7f:fb:f0:50:1e:d9:ae:ab:24:c7:07:1e:90:
+ b0:ee:66:12:f2:d2:f6:95:e1:a0:03:5c:77:06:22:90:af:38:
+ 18:65:7e:23:ce:ef:c9:e9:d3:74:7a:23:ef:53:21:85:63:2f:
+ b1:a0:ff:0c:ab:6d:72:45:7d:97:42:13:d9:46:88:58:70:5c:
+ d6:e7:95:eb:db:e9:6b:29:78:f4:c5:cb:a3:c1:5c:5e:de:8b:
+ 6e:fd:83:6a
+-----BEGIN CERTIFICATE-----
+MIIDajCCAlKgAwIBAgIBATANBgkqhkiG9w0BAQsFADANMQswCQYDVQQDDAJCMTAe
+Fw0xNTAxMDExMjAwMDBaFw0xNjAxMDExMjAwMDBaMAwxCjAIBgNVBAMMAUMwggEi
+MA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQC087w2CQr04P7n/FM8uILqE+xu
+8MR9n4eWq+V940RG0w6lq4c2tBOc0qz/HrMedh41bQUAF3PitzpIbDEfapy8YrZm
+WKQtER981qHlhJVQy5AfrreeavgeEKhtscObKeCD9QUIKs+t0bfdnChU5Sqk9vfB
+/qwibsR+TUwoCFnIH+wBhdTUbFYK7r09K1PU+z9P/pz+vqa6I0Bb2FOPYcUL1NWw
+40cB4fYQeRFe3khh2StrqLGl9/8EXmnvLgYtMQtd4iDLKMwdFFJvbnnvVaCKdHPT
+KqpWOB++z7HBiU9nJxKXkex4BrfC/ySZbzPayPelsJaR8SXOT8Vcxe67g879AgMB
+AAGjgdUwgdIwHQYDVR0OBBYEFNSh6g0xxlvCT4gNgwaRM+CFo+roMB8GA1UdIwQY
+MBaAFJ+liR4H+kdrnMvSo2RBq3k5iqYTMDUGCCsGAQUFBwEBBCkwJzAlBggrBgEF
+BQcwAoYZaHR0cDovL3VybC1mb3ItYWlhL0IxLmNlcjAqBgNVHR8EIzAhMB+gHaAb
+hhlodHRwOi8vdXJsLWZvci1jcmwvQjEuY3JsMA4GA1UdDwEB/wQEAwIFoDAdBgNV
+HSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAG8P
+gUiA1S7JoI4ai6evrMNz3twQBPXbhH0+zT+UKCn8R+yqXsyA3XiCWHKCqpge70p1
+oIudayriVT1Se74ufOwZZqer0yLvbLdtyJEA++Ag3+y8ie4Dfl49cQvQQoZoiMIt
+fa2CoJg5d8upIYBhS5J5cPe43zJRvkZnzVOXODOy5lX3TfwlL5EerndCJKvSsvtF
+J1X5X0LbJf1CegRozOgeICTUrA+Rf/vwUB7ZrqskxwcekLDuZhLy0vaV4aADXHcG
+IpCvOBhlfiPO78np03R6I+9TIYVjL7Gg/wyrbXJFfZdCE9lGiFhwXNbnlevb6Wsp
+ePTFy6PBXF7ei279g2o=
+-----END CERTIFICATE-----

Powered by Google App Engine
This is Rietveld 408576698