[CONC-204] Unable to establish an SSL connection to MySQL 5.6 Created: 2016-09-28  Updated: 2016-09-28

Status: Open
Project: MariaDB Connector/C
Component/s: None
Affects Version/s: 2.3.1
Fix Version/s: None

Type: Bug Priority: Major
Reporter: Adrian Matlack Assignee: Georg Richter
Resolution: Unresolved Votes: 0
Labels: None
Environment:

Windows 10


Attachments: Zip Archive self-signed-certs-test.zip    

 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.


Generated at Thu Feb 08 03:03:37 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.