diff options
author | Sergei Golubchik <serg@mariadb.org> | 2015-04-25 17:22:46 +0200 |
---|---|---|
committer | Sergei Golubchik <serg@mariadb.org> | 2015-04-27 15:42:12 +0200 |
commit | 18215dd9fa784d12dfb1122d58be85823b6f2b5e (patch) | |
tree | e40b19cdbeb4988d51c40b45f9ae689c6fae45ee /mysql-test/std_data/server-cert.pem | |
parent | 9fd65db329b7186faeab79e23ae3be356973fb4d (diff) | |
download | mariadb-git-18215dd9fa784d12dfb1122d58be85823b6f2b5e.tar.gz |
MDEV-7859 SSL hostname verification fails for long subject names
Don't use a fixed buffer for X509_NAME_oneline() in the client.
Do as the server does - allocate it dynamically.
For a test - regenerate certificates to have the server cert with
a long subject.
Diffstat (limited to 'mysql-test/std_data/server-cert.pem')
-rw-r--r-- | mysql-test/std_data/server-cert.pem | 120 |
1 files changed, 56 insertions, 64 deletions
diff --git a/mysql-test/std_data/server-cert.pem b/mysql-test/std_data/server-cert.pem index f6acc62ff5f..1cc1519ada9 100644 --- a/mysql-test/std_data/server-cert.pem +++ b/mysql-test/std_data/server-cert.pem @@ -1,35 +1,26 @@ Certificate: Data: Version: 3 (0x2) - Serial Number: 16263805969935345172 (0xe1b4a55c3ddfa614) - Signature Algorithm: sha256WithRSAEncryption - Issuer: C=SE, ST=Stockholm, L=Stockholm, O=Oracle, OU=MySQL, CN=CA + Serial Number: 1 (0x1) + Signature Algorithm: sha1WithRSAEncryption + Issuer: CN=cacert, C=FI, ST=Helsinki, L=Helsinki, O=MariaDB Validity - Not Before: Dec 5 04:48:40 2014 GMT - Not After : Dec 1 04:48:40 2029 GMT - Subject: C=SE, ST=Stockholm, L=Stockholm, O=Oracle, OU=MySQL, CN=localhost + Not Before: Apr 25 14:55:05 2015 GMT + Not After : Apr 20 14:55:05 2035 GMT + Subject: C=FI, ST=state or province within country, in other certificates in this file it is the same as L, L=location, usually an address but often ambiguously used, O=organization name, typically a company name, OU=organizational unit name, a division name within an organization, CN=localhost Subject Public Key Info: Public Key Algorithm: rsaEncryption - Public-Key: (2048 bit) + Public-Key: (1024 bit) Modulus: - 00:e9:20:e7:05:51:07:3a:48:b9:e2:62:a2:24:45: - 1f:f1:54:34:22:5c:62:86:9b:01:e8:c2:45:90:00: - 8d:4e:e4:a2:ea:e9:d7:b5:95:25:ce:18:ac:1a:4f: - b3:e6:30:46:af:20:13:40:84:df:21:dc:df:09:e5: - a0:7f:81:12:6e:1e:84:58:5c:a1:11:db:aa:b6:04: - e0:fc:1e:0c:11:2e:f3:30:62:1a:f9:ee:df:fe:a3: - d3:d6:83:6e:ad:e8:8d:98:89:b1:69:63:b8:72:f4: - 5a:e6:22:5e:73:64:95:ef:56:92:92:0b:e1:93:a5: - d7:4c:41:47:e7:31:ed:09:68:b3:c5:6e:c1:1b:01: - 39:bb:f1:8f:bf:ba:f4:02:e2:e5:e5:9e:b7:d6:9a: - b2:94:76:9b:48:d8:27:18:0e:9f:30:98:f5:9a:3e: - 23:e6:3b:4a:48:ee:a5:26:e8:80:94:37:e4:4a:ba: - ff:9f:42:b9:32:dd:7a:9d:63:11:a8:25:99:b1:1f: - 86:e5:7c:b1:31:e3:12:11:0c:eb:f6:1d:02:4b:1d: - 34:cb:74:1d:7f:2f:40:c0:81:e2:04:d4:8e:ea:96: - f8:22:35:8e:ab:b6:99:33:36:ef:b5:83:11:88:6d: - 06:0f:76:4d:bf:db:a8:df:6c:3c:91:e2:ba:73:a0: - 73:45 + 00:aa:e6:54:bd:dd:52:1e:16:f7:24:52:37:58:2b: + a7:af:49:e1:cd:75:2a:18:52:e1:48:f0:59:82:c0: + 7a:d9:66:b3:97:04:b3:77:f4:39:fd:d1:c0:1a:c5: + a6:ab:44:84:d2:17:39:53:25:63:9b:c3:24:78:51: + 5c:77:6b:df:b4:82:1d:e4:43:f4:67:0a:5d:89:a2: + fe:b0:ea:64:3a:1d:9d:49:78:c8:7f:79:a5:cd:45: + 4b:0c:ad:ae:4f:e2:d4:5d:ec:e8:73:06:ed:98:92: + 85:49:b2:9c:31:3b:44:38:5f:bb:5a:f1:68:84:a9: + c3:5b:31:39:d4:47:98:38:55 Exponent: 65537 (0x10001) X509v3 extensions: X509v3 Basic Constraints: @@ -37,46 +28,47 @@ Certificate: Netscape Comment: OpenSSL Generated Certificate X509v3 Subject Key Identifier: - E4:31:D8:D5:06:EA:C6:B3:A2:F6:01:39:8F:58:08:36:2C:7B:3F:DB + E5:72:8F:57:72:D6:75:63:28:7F:E2:BF:00:B7:1D:B8:AA:FE:94:59 X509v3 Authority Key Identifier: - keyid:94:65:A1:A3:87:CF:BF:C1:74:BB:D8:84:97:B6:6B:EE:B2:90:73:B2 + keyid:C7:2C:01:95:1A:F5:3E:CD:04:A6:24:35:35:04:D9:A7:16:01:2A:79 - Signature Algorithm: sha256WithRSAEncryption - 46:ef:cd:bf:c1:ef:36:a9:cb:99:b5:be:e2:a7:ba:69:0d:f5: - 9b:63:39:78:32:35:01:a8:b9:f1:70:0e:b5:d1:8f:94:2e:7a: - cb:65:d4:d0:b4:ad:52:b8:51:5f:64:2e:a8:08:a5:71:fe:c2: - 35:8a:0d:28:26:e5:be:ca:d7:f4:79:54:e1:27:8f:87:92:d3: - 04:72:1b:cc:c4:7f:8b:26:09:92:2d:c8:6f:27:da:97:31:80: - 0f:83:84:9c:e0:a4:88:c9:e3:8f:35:e7:de:bd:31:e2:fa:52: - 83:de:ee:5c:60:6e:8f:a5:8d:5e:53:41:18:42:f3:03:0b:05: - 0b:59:09:42:2e:1b:0b:29:b3:fe:11:3b:d5:ad:3f:4d:24:e8: - c0:da:4c:0d:93:94:ec:cd:18:0f:66:cd:03:d3:ee:a0:b2:7f: - 64:d7:39:66:19:72:9f:64:43:38:b4:b6:b3:ea:6f:39:e7:09: - 98:90:9f:6c:f5:e8:b3:2e:09:8d:7b:76:65:30:f4:c4:9b:8e: - 10:4e:9b:8c:93:63:44:9d:2b:8a:f3:f0:cf:f8:7b:65:95:38: - fb:b4:92:e8:6c:11:03:a2:a2:2f:ea:e0:22:b7:cd:cf:0d:a5: - 91:23:14:47:0c:34:8f:f1:11:cc:e8:1e:37:53:ec:a1:01:81: - 20:c0:2c:f5 + Signature Algorithm: sha1WithRSAEncryption + 88:44:46:fa:7d:16:ae:9d:16:5b:95:26:03:3c:71:f4:29:3d: + df:cb:f4:14:20:9f:87:24:b4:29:17:2d:7a:12:48:76:ac:00: + 44:26:ba:93:83:ad:58:7e:b7:77:e4:b0:32:0d:e5:dd:fb:cc: + 0e:9b:88:e0:24:82:e4:41:43:47:5a:4e:d3:b4:5b:47:4b:57: + eb:67:02:63:bb:dd:05:12:f5:95:01:0b:89:81:ca:c2:91:14: + 21:9a:9e:c9:84:91:46:35:0e:26:44:1e:91:88:74:4f:fe:d3: + 19:9e:65:fa:46:e2:46:04:ad:91:79:4c:70:1b:68:b2:49:e9: + 6c:f4:58:44:3b:43:15:85:56:64:1b:84:74:49:95:9f:cd:93: + 9d:8e:69:ab:ca:46:97:b6:74:e9:2a:83:85:62:cd:e5:be:c3: + 52:bd:cf:90:cc:60:27:76:ee:1b:3c:da:69:73:e2:11:68:14: + dc:7d:9f:b8:6f:20:a2:0c:b7:8e:33:40:89:d1:a3:89:e2:60: + 6a:ec:b5:9f:e8:c5:55:10:40:b2:95:5e:54:8a:10:8e:d5:90: + d9:98:86:d8:f9:b6:01:41:8c:d7:0d:0e:86:0e:50:6d:a2:64: + 00:2a:91:5e:35:64:15:e3:86:34:3a:39:eb:0f:4f:56:c7:15: + 4c:74:2e:91 -----BEGIN CERTIFICATE----- -MIIDyzCCArOgAwIBAgIJAOG0pVw936YUMA0GCSqGSIb3DQEBCwUAMGMxCzAJBgNV -BAYTAlNFMRIwEAYDVQQIDAlTdG9ja2hvbG0xEjAQBgNVBAcMCVN0b2NraG9sbTEP -MA0GA1UECgwGT3JhY2xlMQ4wDAYDVQQLDAVNeVNRTDELMAkGA1UEAwwCQ0EwHhcN -MTQxMjA1MDQ0ODQwWhcNMjkxMjAxMDQ0ODQwWjBqMQswCQYDVQQGEwJTRTESMBAG -A1UEC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