Uploaded image for project: 'MariaDB MaxScale'
  1. MariaDB MaxScale
  2. MXS-5563

Using PKCS#1 private key in the REST-API results in cryptic errors

    XMLWordPrintable

Details

    Description

      The following error is logged on startup if a PKCS#1 format private key is used in the REST-API:

      2025-03-18 16:02:41   error  : Failed to load REST API TLS private key: ASN1 parser: Error in DER parsing.
      

      In MaxScale 21.06, the error is slightly different:

      2025-03-18 17:06:33   error  : REST API HTTP daemon error: GnuTLS failed to setup x509 certificate/key: ASN1 parser: Error in DER parsing.
      

      This is because GnuTLS seems to refuse to load PKCS#1 private keys.

      Attachments

        Activity

          People

            markus makela markus makela
            markus makela markus makela
            Votes:
            0 Vote for this issue
            Watchers:
            3 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.