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.
1 回答
已采纳
慕桂英2170621
TA贡献9条经验 获得超8个赞
不建议在没有服务器身份验证的情况下建立ssl连接。根据mysql 5.5.45+、5.6.26+和5.7.6+的要求,如果未设置显式选项,则必须默认地建立ssl连接。为了符合不使用ssl的现有应用程序,验证服务器证书属性设置为“假”。您需要通过设置usessl=假来显式禁用ssl,或者设置usessl=真,并提供用于验证服务器证书的信任存储。翻译来的,只能帮你到这里,希望对你有帮助
- 1 回答
- 0 关注
- 1127 浏览
添加回答
举报
0/150
提交
取消