GUACAMOLE-1453: Enable SSL connection between Guacamole and DB using MaraiDB Connector/J

This commit is contained in:
Tadashi Kanda
2021-10-28 11:59:11 +09:00
parent fc3748fd87
commit 3b34d2cd73

View File

@@ -87,8 +87,11 @@ public class MySQLAuthenticationProviderModule implements Module {
driverProperties.setProperty("sslMode", sslMode.getDriverValue());
// For compatibility, set legacy useSSL property when SSL is disabled.
if (sslMode == MySQLSSLMode.DISABLED)
if (sslMode == MySQLSSLMode.DISABLED) {
driverProperties.setProperty("useSSL", "false");
} else {
driverProperties.setProperty("useSSL", "true");
}
// Check other SSL settings and set as required
File trustStore = environment.getMySQLSSLTrustStore();