mirror of
https://github.com/TuxCoding/FastLogin.git
synced 2025-07-29 18:27:36 +02:00
Require full verification if SSL is enabled in MySQL
This commit is contained in:
@ -17,8 +17,10 @@ public class MySQLStorage extends SQLStorage {
|
||||
config.addDataSourceProperty("useSSL", useSSL);
|
||||
config.addDataSourceProperty("requireSSL", useSSL);
|
||||
|
||||
// prefer encrypted if possible
|
||||
config.addDataSourceProperty("sslMode", "PREFERRED");
|
||||
if (useSSL) {
|
||||
// require encrypted if possible
|
||||
config.addDataSourceProperty("sslMode", "VerifyFull");
|
||||
}
|
||||
|
||||
// adding paranoid hides hostname, username, version and so
|
||||
// could be useful for hiding server details
|
||||
|
Reference in New Issue
Block a user