Details
-
Bug
-
Status: Open (View Workflow)
-
Major
-
Resolution: Unresolved
-
2.3.1
-
None
-
None
-
None
-
Windows 10
Description
I am not able to establish an SSL connection to MySQL 5.6.30. Below is some very simple code I've used to test with:
MYSQL *mysql = mysql_init( NULL );
|
mysql_ssl_set( mysql, NULL, NULL, NULL, NULL, "DHE-RSA-AES256-SHA" ); |
if( mysql_real_connect( mysql, "localhost", "username", "password", "", 3306, NULL, 0 ) ) |
std::cout << mysql_get_ssl_cipher( mysql );
|
When I link this test program against libmysql.dll from MySQL 5.6.30 the value DHE-RSA-AES256-SHA is returned by mysql_get_ssl_cipher. With libmariadb 2.3.1 it returns an empty string. I get the same behavior when I also specify the ca, client-cert, and client-key paths in mysql_ssl_set.
The certificates used by the MySQL server are self-signed and created with OpenSSL. The openssl verify -CAfile command indicates that both the server and client cert are 'OK'.
I created the certs specifically for the purpose of this test, they are attached to the ticket.