MySQL: Use SSL for Connection

MySQL: Use SSL for Connection

To use SSL for a MySQL database, the JDBC connection must have additional parameters to require the JDBC connection to establish an SSL connection.

The following example URL provides three additional settings:

Value

Description

Valid Values

verifyServerCertificate

 

true or false

jdbc:mysql://localhost:3306/andi?verifyServerCertificate=false&useSSL=true&requireSSL=true