GUACAMOLE-1453: Merge enable MySQL/MariaDB SSL connection using legacy property

This commit is contained in:
Virtually Nick
2021-10-28 13:09:44 -04:00
committed by GitHub

View File

@@ -89,6 +89,9 @@ public class MySQLAuthenticationProviderModule implements Module {
// For compatibility, set legacy useSSL property when SSL is disabled. // For compatibility, set legacy useSSL property when SSL is disabled.
if (sslMode == MySQLSSLMode.DISABLED) if (sslMode == MySQLSSLMode.DISABLED)
driverProperties.setProperty("useSSL", "false"); driverProperties.setProperty("useSSL", "false");
// For compatibility, set legacy useSSL property when SSL is eisabled.(Required for mariadb connector/j)
else
driverProperties.setProperty("useSSL", "true");
// Check other SSL settings and set as required // Check other SSL settings and set as required
File trustStore = environment.getMySQLSSLTrustStore(); File trustStore = environment.getMySQLSSLTrustStore();