We are trying to use the mariadb connector in a cloud environment and need to configure a custom SSLSocketFactory which apparently is not possible at the moment. We are in need of a sslSocketFactory JDBC URL parameter similar to the existing socketFactory.
We already tried to configure our custom SSLSocketFactory via the socketFactory parameter, but that fails as MySQL/MariaDB are using StartTLS: Could not connect to db:3306: Unrecognized SSL message, plaintext connection?
The postgresql jdbc driver also supports setting a custom SSLSocketFactory via an sslfactory parameter. See https://jdbc.postgresql.org/documentation/head/ssl-client.html