GUACAMOLE-1453: Enable SSL connection between Guacamole and DB using MaraiDB Connector/J
This commit is contained in:
1 parent
fc3748fd87
commit
3b34d2cd73
1 file changed
+5
-2
+5
-2
@@ -87,9 +87,12 @@ public class MySQLAuthenticationProviderModule implements Module {
|
|||||||
driverProperties.setProperty("sslMode", sslMode.getDriverValue());
|
driverProperties.setProperty("sslMode", sslMode.getDriverValue());
|
||||||
|
|
||||||
// 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");
|
||||||
|
} 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();
|
||||||
if (trustStore != null)
|
if (trustStore != null)
|
||||||
|
|||||||
Reference in new issue
Block a user