美文网首页
Establishing SSL connection with

Establishing SSL connection with

作者: 小KKKKKKKK | 来源:发表于2022-02-26 10:43 被阅读0次

问题出现

由于连接MySQL时报的一个警告,警告内容:

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.

翻译内容为:

警告:不建议在没有进行服务器身份验证的情况下建立SSL连接。根据MySQL 5.5.45+、5.6.26+和5.7.6+的要求,如果没有设置显式选项,则默认必须建立SSL连接。为了与不使用SSL的现有应用程序保持一致,verifyServerCertificate属性被设置为' false '。您需要通过设置useSSL=false来显式禁用SSL,或者设置useSSL=true并为服务器证书验证提供信任存储。

(以上翻译来自有道词典)

在使用MySQL高版本时需要说明SSL是否连接,那么SSL是个什么?

SSL是什么?

SSL(Secure Socket Layer:安全套接字层)利用数据加密、身份验证和消息完整性验证机制,为基于TCP等可靠连接的应用层协议提供安全性保证。

SSL有什么功能?

  1. 利用对称密钥算法对传输的数据进行加密;
  2. 基于证书利用数字签名的方法对服务器和客户端进行身份验证;
  3. 消息传输过程中使用MAC算法来检验消息的完整性;

解决办法

在连接MySQL的url中添加“&useSSL=false”

相关文章

网友评论

      本文标题:Establishing SSL connection with

      本文链接:https://www.haomeiwen.com/subject/wqdqrrtx.html