astei / SuperbVote

A superb Votifier listener.
https://www.spigotmc.org/resources/superbvote.11626/
Eclipse Public License 1.0
17 stars 36 forks source link

Adding ssl option to config so users can silence warnings when connnecting to databases without SSL #101

Open meowsome opened 4 years ago

meowsome commented 4 years ago

Hi,

Sorry for any hiccups, this is my first time doing a pull request so I am learning.

The changes I've made allow for users to silence the following warnings that appear in console by setting 'ssl' to 'false' when they are using a database without SSL (like on a paid server host):

WARN: Establishing SSL connection without server's identity verification is not recommended. According to MySQL 5.5.45+, 5.6.26+ and 5.7.6+ requirements SSL connection must be established by default if explicit option isn't set. For compliance with existing applications not using SSL the verifyServerCertificate property is set to 'false'. You need either to explicitly disable SSL by setting useSSL=false, or set useSSL=true and provide truststore for server certificate verification.