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

GnuTLS crashes if using pem files with combined cert and key

Details

    • Task
    • Status: Closed (View Workflow)
    • Major
    • Resolution: Fixed
    • 3.0.11, 3.1.2
    • 3.1.3
    • None
    • None

    Description

      GnuTLS crashes if certificate and key are combined in a single pem file.

      Solution: use

      gnutls_certificate_x509_keyfile2()
      

      api function in ma_tls_set_certs function.

      Attachments

        Activity

          georg Georg Richter created issue -
          georg Georg Richter added a comment -

          commit ff13dd446dcd6dd861026a8aa3cd23f3a9c759d3 (origin/3.0, 3.0)
          Author: Georg Richter <georg@mariadb.com>
          Date: Mon Jun 24 18:07:53 2019 +0200

          CONC-421:

          Fixed crash in case certificate and key are stored in the same file.
          Instead of reading key and cert separately we now call gnutls api function
          gnutls_certificate_x509_keyfile2() to load certificate and key.

          georg Georg Richter added a comment - commit ff13dd446dcd6dd861026a8aa3cd23f3a9c759d3 (origin/3.0, 3.0) Author: Georg Richter <georg@mariadb.com> Date: Mon Jun 24 18:07:53 2019 +0200 CONC-421 : Fixed crash in case certificate and key are stored in the same file. Instead of reading key and cert separately we now call gnutls api function gnutls_certificate_x509_keyfile2() to load certificate and key.
          georg Georg Richter made changes -
          Field Original Value New Value
          issue.field.resolutiondate 2019-06-24 16:13:14.0 2019-06-24 16:13:14.876
          georg Georg Richter made changes -
          Resolution Fixed [ 1 ]
          Status Open [ 1 ] Closed [ 6 ]
          GeoffMontee Geoff Montee (Inactive) made changes -
          Fix Version/s 3.0.12 [ 23742 ]
          julien.fritsch Julien Fritsch made changes -
          Workflow MariaDB connectors [ 97720 ] MariaDB v4 [ 161174 ]

          People

            georg Georg Richter
            georg Georg Richter
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Git Integration

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