Uploaded image for project: 'MariaDB Connector/C'
  1. MariaDB Connector/C
  2. CONC-204

Unable to establish an SSL connection to MySQL 5.6

    XMLWordPrintable

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.

      Attachments

        Activity

          People

            georg Georg Richter
            adrian_sru Adrian Matlack
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:

              Git Integration

                Error rendering 'com.xiplink.jira.git.jira_git_plugin:git-issue-webpanel'. Please contact your Jira administrators.