https://mariadb.com/kb/en/using-tls-ssl-with-mariadb-java-connector/
When the driver tries to connect using SSL, but no certificate is provided, or the "trustServerCertificate=true" option is not set, the driver will fail with the following exception "Caused by: sun.se