Configure SSL certificates with Hibernate, Spring and JDBC

扶醉桌前 提交于 2019-12-01 01:31:36

The MySQL guide has information on what to do on the client side, this bug also has some detailed information.

It basically comes done to the following steps

  1. Create a keystore and truststore with your clients certificate
  2. Configure your environment (or a MysqlDataSource) to use these keystore and truststore
  3. Configure the connection URL properly (which is what you apparently already have done).

And that should be it. The key is to have the correct certificates on the client side.

More information:

  1. Secure JDBC connection to MySQL from GlassFish
  2. Secure JDBC connection to MySQL from Java
  3. MySQL SSL Documentation
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!