Comments - About MariaDB Connector/J

5 years, 7 months ago Mark
This comment has the status of 'removed' and can only be seen by you.

My connection string is jdbc:mariadb:${db.server.name}:${db.server.port}/${db.name}?serverSslCert=<path to pem file>&jdbcCompliantTruncation=false&verifyServerCertificate=true&useSSL=true&enabledSslProtocolSuites=TLSv1.1&autoReconnect=true&disableSslHostnameVerification=true

I use this connection in an application which also acts as a client to servers requiring client authentication; the authentication information is provided via javax.net.ssl.keyStore(Password) properties which point to a JKS file. When defined, these properties interfere with the database connection and cause it to fail with "Unsupported record version Unknown-0.0", when I run without these properties the connection works fine. I surmise that the driver is using these properties instead of the provided serverSslCert property; is there a way to make the driver ignore the javax.net.ssl.* properties and work with what is given in its serverSslCert property?

 
Content reproduced on this site is the property of its respective owners, and this content is not reviewed in advance by MariaDB. The views, information and opinions expressed by this content do not necessarily represent those of MariaDB or any other party.