Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
main.database.params=useUnicode=true&characterEncoding=UTF-8&useSSL=true&requireSSL=true

NOTE: JDK has issue with validating SSL certs, so you may want to add another parameter which will disable validation using verifyServerCertificate=false

To strictly force SSL for a user to connect to mysql use "REQUIRE SSL" with GRANT statement.

http://dev.mysql.com/doc/refman/5.1/en/connector-j-reference-using-ssl.html

...