Skip to content

Mysql: default to SSL without verification#277

Open
Tyler Cunnion (tylercunnion) wants to merge 2 commits into
masterfrom
mysql-ssl-default
Open

Mysql: default to SSL without verification#277
Tyler Cunnion (tylercunnion) wants to merge 2 commits into
masterfrom
mysql-ssl-default

Conversation

@tylercunnion

Copy link
Copy Markdown

Attempts to silence this warning:
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.

The actual behavior should not change, but specifying it explicitly in the connection string should satisfy the warning. Additionally, future development could make it possible to set a trust store and actually verify the server certs.

@tylercunnion Tyler Cunnion (tylercunnion) added the change/standard Trivial / minor changes that are low-impact, low risk label Jan 23, 2022
@tylercunnion Tyler Cunnion (tylercunnion) marked this pull request as ready for review January 24, 2022 18:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

change/standard Trivial / minor changes that are low-impact, low risk

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant