summaryrefslogtreecommitdiffstats
path: root/Lib/test/keycert4.pem
diff options
context:
space:
mode:
authorChristian Heimes <christian@python.org>2018-01-20 14:16:30 (GMT)
committerGitHub <noreply@github.com>2018-01-20 14:16:30 (GMT)
commitbd5c7d238c01b90fbfae8ea45b47bd601900abaf (patch)
tree91aa539ae1575cc7210b3ea1800bb671e6c192c8 /Lib/test/keycert4.pem
parentff5be6e8100276647e0077e80869fc022d1bb53f (diff)
downloadcpython-bd5c7d238c01b90fbfae8ea45b47bd601900abaf.zip
cpython-bd5c7d238c01b90fbfae8ea45b47bd601900abaf.tar.gz
cpython-bd5c7d238c01b90fbfae8ea45b47bd601900abaf.tar.bz2
bpo-32602: Test ECDSA certs (#5247)
Add test certs and test for ECDSA cert and EC/RSA dual mode. I'm also adding certs for IDNA 2003/2008 tests and simplify some test data handling. Signed-off-by: Christian Heimes <christian@python.org>
Diffstat (limited to 'Lib/test/keycert4.pem')
-rw-r--r--Lib/test/keycert4.pem173
1 files changed, 116 insertions, 57 deletions
diff --git a/Lib/test/keycert4.pem b/Lib/test/keycert4.pem
index 53355c8..b7df7f3 100644
--- a/Lib/test/keycert4.pem
+++ b/Lib/test/keycert4.pem
@@ -1,73 +1,132 @@
-----BEGIN PRIVATE KEY-----
-MIICdgIBADANBgkqhkiG9w0BAQEFAASCAmAwggJcAgEAAoGBAK5UQiMI5VkNs2Qv
-L7gUaiDdFevNUXRjU4DHAe3ZzzYLZNE69h9gO9VCSS16tJ5fT5VEu0EZyGr0e3V2
-NkX0ZoU0Hc/UaY4qx7LHmn5SYZpIxhJnkf7SyHJK1zUaGlU0/LxYqIuGCtF5dqx1
-L2OQhEx1GM6RydHdgX69G64LXcY5AgMBAAECgYAhsRMfJkb9ERLMl/oG/5sLQu9L
-pWDKt6+ZwdxzlZbggQ85CMYshjLKIod2DLL/sLf2x1PRXyRG131M1E3k8zkkz6de
-R1uDrIN/x91iuYzfLQZGh8bMY7Yjd2eoroa6R/7DjpElGejLxOAaDWO0ST2IF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VATE KEY-----
Certificate:
Data:
- Version: 1 (0x0)
- Serial Number: 12723342612721443282 (0xb09264b1f2da21d2)
+ Version: 3 (0x2)
+ Serial Number:
+ 82:ed:bf:41:c8:80:91:9d
Signature Algorithm: sha1WithRSAEncryption
Issuer: C=XY, O=Python Software Foundation CA, CN=our-ca-server
Validity
- Not Before: Jan 4 19:47:07 2013 GMT
- Not After : Nov 13 19:47:07 2022 GMT
+ Not Before: Jan 19 19:09:06 2018 GMT
+ Not After : Nov 28 19:09:06 2027 GMT
Subject: C=XY, L=Castle Anthrax, O=Python Software Foundation, CN=fakehostname
Subject Public Key Info:
Public Key Algorithm: rsaEncryption
- Public-Key: (1024 bit)
+ Public-Key: (2048 bit)
Modulus:
- 00:ae:54:42:23:08:e5:59:0d:b3:64:2f:2f:b8:14:
- 6a:20:dd:15:eb:cd:51:74:63:53:80:c7:01:ed:d9:
- cf:36:0b:64:d1:3a:f6:1f:60:3b:d5:42:49:2d:7a:
- b4:9e:5f:4f:95:44:bb:41:19:c8:6a:f4:7b:75:76:
- 36:45:f4:66:85:34:1d:cf:d4:69:8e:2a:c7:b2:c7:
- 9a:7e:52:61:9a:48:c6:12:67:91:fe:d2:c8:72:4a:
- d7:35:1a:1a:55:34:fc:bc:58:a8:8b:86:0a:d1:79:
- 76:ac:75:2f:63:90:84:4c:75:18:ce:91:c9:d1:dd:
- 81:7e:bd:1b:ae:0b:5d:c6:39
+ 00:c7:ff:be:a1:64:06:47:e1:c4:95:0a:65:59:6b:
+ 91:c4:a8:a0:a3:08:aa:dc:3f:00:44:0a:cf:41:4b:
+ ed:e2:6f:03:78:c7:d3:67:14:d3:fe:b4:27:85:1a:
+ 02:57:97:b5:86:16:87:97:82:0d:e8:2b:ed:69:16:
+ c3:96:a6:c4:47:b8:5d:c1:76:a9:02:9d:28:52:c9:
+ d9:93:f1:b2:da:18:7c:0a:78:bd:1c:3f:12:4f:e5:
+ 3f:ee:5b:b7:b3:3c:a5:b6:55:65:c6:33:09:b0:45:
+ a4:49:f5:d8:f6:54:25:2e:db:4b:c3:65:64:86:16:
+ bf:73:8e:78:e8:25:cc:c1:b4:7d:d1:b1:55:20:a4:
+ ae:de:b8:41:ee:43:9a:48:33:d4:12:39:a0:a8:fb:
+ 91:4f:47:bb:3b:d6:75:3b:62:a6:c5:5a:d7:7e:36:
+ 10:bc:3a:0d:46:e3:de:c1:df:50:d0:94:77:22:17:
+ a0:51:9b:af:dc:34:60:26:1d:a0:04:ac:a5:06:04:
+ 57:64:1a:d1:4f:1c:19:f8:be:4b:68:12:0f:5f:c3:
+ 12:40:64:bb:c6:a6:84:d9:5a:b0:78:1d:1b:11:c1:
+ 54:e6:15:d1:af:2b:e2:57:2b:6d:b9:c4:5d:b7:01:
+ 74:57:a7:fb:27:85:2b:92:15:e2:e3:13:97:29:c8:
+ 92:7b
Exponent: 65537 (0x10001)
+ X509v3 extensions:
+ X509v3 Subject Alternative Name:
+ DNS:fakehostname
+ X509v3 Key Usage: critical
+ Digital Signature, Key Encipherment
+ X509v3 Extended Key Usage:
+ TLS Web Server Authentication, TLS Web Client Authentication
+ X509v3 Basic Constraints: critical
+ CA:FALSE
+ X509v3 Subject Key Identifier:
+ F8:76:79:CB:11:85:F0:46:E5:95:E6:7E:69:CB:12:5E:4E:AA:EC:4D
+ X509v3 Authority Key Identifier:
+ keyid:9A:CF:CF:6E:EB:71:3D:DB:3C:F1:AE:88:6B:56:72:03:CB:08:A7:48
+ DirName:/C=XY/O=Python Software Foundation CA/CN=our-ca-server
+ serial:82:ED:BF:41:C8:80:91:9B
+
+ Authority Information Access:
+ CA Issuers - URI:http://testca.pythontest.net/testca/pycacert.cer
+ OCSP - URI:http://testca.pythontest.net/testca/ocsp/
+
+ X509v3 CRL Distribution Points:
+
+ Full Name:
+ URI:http://testca.pythontest.net/testca/revocation.crl
+
Signature Algorithm: sha1WithRSAEncryption
- ad:45:8a:8e:ef:c6:ef:04:41:5c:2c:4a:84:dc:02:76:0c:d0:
- 66:0f:f0:16:04:58:4d:fd:68:b7:b8:d3:a8:41:a5:5c:3c:6f:
- 65:3c:d1:f8:ce:43:35:e7:41:5f:53:3d:c9:2c:c3:7d:fc:56:
- 4a:fa:47:77:38:9d:bb:97:28:0a:3b:91:19:7f:bc:74:ae:15:
- 6b:bd:20:36:67:45:a5:1e:79:d7:75:e6:89:5c:6d:54:84:d1:
- 95:d7:a7:b4:33:3c:af:37:c4:79:8f:5e:75:dc:75:c2:18:fb:
- 61:6f:2d:dc:38:65:5b:ba:67:28:d0:88:d7:8d:b9:23:5a:8e:
- e8:c6:bb:db:ce:d5:b8:41:2a:ce:93:08:b6:95:ad:34:20:18:
- d5:3b:37:52:74:50:0b:07:2c:b0:6d:a4:4c:7b:f4:e0:fd:d1:
- af:17:aa:20:cd:62:e3:f0:9d:37:69:db:41:bd:d4:1c:fb:53:
- 20:da:88:9d:76:26:67:ce:01:90:a7:80:1d:a9:5b:39:73:68:
- 54:0a:d1:2a:03:1b:8f:3c:43:5d:5d:c4:51:f1:a7:e7:11:da:
- 31:2c:49:06:af:04:f4:b8:3c:99:c4:20:b9:06:36:a2:00:92:
- 61:1d:0c:6d:24:05:e2:82:e1:47:db:a0:5f:ba:b9:fb:ba:fa:
- 49:12:1e:ce
+ 6d:50:8d:fb:ee:4e:93:8b:eb:47:56:ba:38:cc:80:e1:9d:c7:
+ e1:9e:1f:9c:22:0c:d2:08:9b:ed:bf:31:d9:00:ee:af:8c:56:
+ 78:92:d1:7c:ba:4e:81:7f:82:1f:f4:68:99:86:91:c6:cb:57:
+ d3:b9:41:12:fa:75:53:fd:22:32:21:50:af:6b:4c:b1:34:36:
+ d1:a8:25:0a:d0:f0:f8:81:7d:69:58:6e:af:e3:d2:c4:32:87:
+ 79:d7:cd:ad:0c:56:f3:15:27:10:0c:f9:57:59:53:00:ed:af:
+ 5d:4d:07:86:7a:e5:f3:97:88:bc:86:b4:f1:17:46:33:55:28:
+ 66:7b:70:d3:a5:12:b9:4f:c7:ed:e6:13:20:2d:f0:9e:ec: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