I use for MySql connection sslMode = PREFERRED and it means establish an encrypted connection if the server supports encrypted connections, falling back to an unencrypted co