Uploaded image for project: 'MariaDB Connector/J'
  1. MariaDB Connector/J
  2. CONJ-452

serverSslCert=----BEGIN CERTIFICATE Not Compatible with Google App Engine

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: 1.5.6
    • Fix Version/s: 1.6.0, 2.0.1
    • Component/s: Other, TLS
    • Labels:
      None
    • Environment:
      Google Cloud App Engine

      Description

      It appears that using the serverSslCert=-----BEGIN CERTIFICATE type of syntax (i.e. specifying it inline which we need to do) causes a write to the keyStore.

      Google App Engine runs on a read-only file system, so no writes are allowed. I suspect this is why the connection fails. Is there some way to work around this? Possibly not write it to the trust store?

      The exception backtrace looks like this:

       
      java.sql.SQLNonTransientConnectionException: Failed to store certificate from serverSslCert into a keyStore
      	at org.mariadb.jdbc.internal.util.ExceptionMapper.get(ExceptionMapper.java:132)
      	at org.mariadb.jdbc.internal.util.ExceptionMapper.getException(ExceptionMapper.java:101)
      	at org.mariadb.jdbc.internal.util.ExceptionMapper.throwException(ExceptionMapper.java:91)
      	at org.mariadb.jdbc.Driver.connect(Driver.java:109)
      	at java.sql.DriverManager.getConnection(DriverManager.java:571)
      	at java.sql.DriverManager.getConnection(DriverManager.java:215)
      	at com.parasql.schema.TransactionSet.openConnection(TransactionSet.java:272)
      

        Attachments

          Activity

            People

            Assignee:
            diego dupin Diego Dupin
            Reporter:
            rdyas Robert Dyas
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: