[MDEV-5198] SSL connection inconsistency between Linux and Windows XP Created: 2013-10-27 Updated: 2014-01-08 Due: 2013-12-30 Resolved: 2014-01-08 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | None |
| Affects Version/s: | 5.5.33a |
| Fix Version/s: | None |
| Type: | Bug | Priority: | Major |
| Reporter: | Clif Cox (Inactive) | Assignee: | Elena Stepanova |
| Resolution: | Incomplete | Votes: | 0 |
| Labels: | Client, SSL, Windows | ||
| Environment: |
Linux 3.5.2 and Windows XP |
||
| Description |
|
Summery, you can connect to the server from a linux box with the CA public key but not from an XP box using the same Certs. I generated these certs with TinyCA and exported the client and server certs with both the cert and key in one file. These files end with both.pem. The seperate cert and key files end with cert.pem, and key.pem respectivly. The Server set up:
my.cnf Excerpt:
If you verify the keys with openssl they are fine:
In another bug report you ask for examples of it not working when it passes this test; Here ya go. On the linux client machine everything just works:
All these connections were tested for SSL like so:
Windows XP: Windows does not work as expected, unless you expect it not to work.
Works.
Works
Thanks for any light you can shed on this. Clif |
| Comments |
| Comment by Elena Stepanova [ 2013-12-02 ] | ||||
|
Hi, I tried to re-create the whole thing as close as possible, including XP, 32 bit, Tinyca and all that, only I have Wheezy instead of Squeeze (don't think it should be important); but I wasn't able to reproduce the problem you describe. Everything connects all right for me: C:_Home\tmp>"c:\Program Files\MariaDB 5.5\bin\mysql" -V C:_Home\tmp>"c:\Program Files\MariaDB 5.5\bin\mysql" --ssl-cert=client-cert.pem --ssl-key=client-key2.pem --ssl-ca=CA-cert.pem --host=192.168.100.10 -utest Copyright (c) 2000, 2013, Oracle, Monty Program Ab and others. Type 'help;' or '\h' for help. Type '\c' to clear the current input statement. MariaDB [(none)]> show status like 'ssl_cipher';
--------------
-------------- However, I can easily get the very same error if I provide a wrong path to the CA file: C:_Home\tmp>"c:\Program Files\MariaDB 5.5\bin\mysql" --ssl-cert=client-cert.pem --ssl-key=client-key2.pem --ssl-ca=non-existing-ca.pem --host=192.168.100.10 -utest So, as obvious as it sounds, could you please double-check that the file you pass in ssl-ca option indeed exists on the Windows machine, and is not corrupted. If everything is in place and you still get the error, please either provide the exact instructions, step-by-step, on how you create the certs with Tinyca, including the data to fill in the forms (of course if it's private it needs to be obfuscated); or please attach the set of certs that causes the problem (again, with obfuscated data if necessary). Thanks. | ||||
| Comment by Elena Stepanova [ 2014-01-08 ] | ||||
|
Closing for now as incomplete, if you have more information to reply to the previous comment, please do so, and we will re-open the report. |