zoukankan      html  css  js  c++  java
  • WARN: Establishing SSL connection without server's identity verification is not recommended

    INFO | jvm 1 | 2017/01/24 18:02:15 | Tue Jan 24 18:02:15 CST 2017 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.
    INFO | jvm 1 | 2017/01/24 18:02:15 | WrapperSimpleApp Error: at com.mysql.jdbc.ExportControlled.transformSocketToSSLSocket(ExportControlled.java:164)
    INFO | jvm 1 | 2017/01/24 18:02:15 | WrapperSimpleApp Error: at com.mysql.jdbc.MysqlIO.negotiateSSLConnection(MysqlIO.java:4894)
    INFO | jvm 1 | 2017/01/24 18:02:15 | WrapperSimpleApp Error: Caused by: javax.net.ssl.SSLException: java.security.ProviderException: java.security.KeyException
    INFO | jvm 1 | 2017/01/24 18:02:15 | WrapperSimpleApp Error: at sun.security.ssl.Alerts.getSSLException(Alerts.java:208)
    INFO | jvm 1 | 2017/01/24 18:02:15 | WrapperSimpleApp Error: at sun.security.ssl.SSLSocketImpl.fatal(SSLSocketImpl.java:1949)
    INFO | jvm 1 | 2017/01/24 18:02:15 | WrapperSimpleApp Error: at sun.security.ssl.SSLSocketImpl.fatal(SSLSocketImpl.java:1906)
    INFO | jvm 1 | 2017/01/24 18:02:15 | WrapperSimpleApp Error: at sun.security.ssl.SSLSocketImpl.handleException(SSLSocketImpl.java:1889)
    INFO | jvm 1 | 2017/01/24 18:02:15 | WrapperSimpleApp Error: at sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1410)
    INFO | jvm 1 | 2017/01/24 18:02:15 | WrapperSimpleApp Error: at sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1387)
    INFO | jvm 1 | 2017/01/24 18:02:15 | WrapperSimpleApp Error: at com.mysql.jdbc.ExportControlled.transformSocketToSSLSocket(ExportControlled.java:149)
    INFO | jvm 1 | 2017/01/24 18:02:15 | WrapperSimpleApp Error: at sun.security.ssl.ECDHCrypt.<init>(ECDHCrypt.java:77)
    INFO | jvm 1 | 2017/01/24 18:02:15 | WrapperSimpleApp Error: at sun.security.ssl.ClientHandshaker.serverKeyExchange(ClientHandshaker.java:721)
    INFO | jvm 1 | 2017/01/24 18:02:15 | WrapperSimpleApp Error: at sun.security.ssl.ClientHandshaker.processMessage(ClientHandshaker.java:281)
    INFO | jvm 1 | 2017/01/24 18:02:15 | WrapperSimpleApp Error: at sun.security.ssl.Handshaker.processLoop(Handshaker.java:979)
    INFO | jvm 1 | 2017/01/24 18:02:15 | WrapperSimpleApp Error: at sun.security.ssl.Handshaker.process_record(Handshaker.java:914)
    INFO | jvm 1 | 2017/01/24 18:02:15 | WrapperSimpleApp Error: at sun.security.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:1062)
    INFO | jvm 1 | 2017/01/24 18:02:15 | WrapperSimpleApp Error: at sun.security.ssl.SSLSocketImpl.performInitialHandshake(SSLSocketImpl.java:1375)
    INFO | jvm 1 | 2017/01/24 18:02:15 | WrapperSimpleApp Error: at sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1403)

    使用oracle jdk而非openjdk。
    INFO | jvm 1 | 2017/01/24 18:05:49 | Tue Jan 24 18:05:49 CST 2017 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.
    INFO | jvm 1 | 2017/01/24 18:05:49 | Tue Jan 24 18:05:49 CST 2017 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.
    INFO | jvm 1 | 2017/01/24 18:05:49 | Tue Jan 24 18:05:49 CST 2017 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.
    INFO | jvm 1 | 2017/01/24 18:05:50 | Tue Jan 24 18:05:50 CST 2017 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.

    在jdbcUrl的最后加上useSSL=false。

  • 相关阅读:
    Linux下安装Tomcat服务器和部署Web应用
    两个有序链表的合并
    一个时间效率为O(n)的排序算法
    五种常用的Web安全认证方式
    接口认证方式
    curl 命令详解~~
    高德地图、腾讯地图、谷歌中国区地图与百度地图坐标系
    CentOS 7 yum 安装与配置 JDK
    PHP调用Google Translate API接口
    关联了微信开放平台的小程序,某些情况无法获取到unionId
  • 原文地址:https://www.cnblogs.com/zhjh256/p/6347765.html
Copyright © 2011-2022 走看看