mirror of
https://github.com/TuxCoding/FastLogin.git
synced 2025-07-31 03:07:34 +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("useSSL", useSSL);
|
||||||
config.addDataSourceProperty("requireSSL", useSSL);
|
config.addDataSourceProperty("requireSSL", useSSL);
|
||||||
|
|
||||||
// prefer encrypted if possible
|
if (useSSL) {
|
||||||
config.addDataSourceProperty("sslMode", "PREFERRED");
|
// require encrypted if possible
|
||||||
|
config.addDataSourceProperty("sslMode", "VerifyFull");
|
||||||
|
}
|
||||||
|
|
||||||
// adding paranoid hides hostname, username, version and so
|
// adding paranoid hides hostname, username, version and so
|
||||||
// could be useful for hiding server details
|
// could be useful for hiding server details
|
||||||
|
Reference in New Issue
Block a user