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。

  • 相关阅读:
    一个该不该抽出来的函数引起的思考
    规范代码之方法重用
    web列表分页与问题
    win10系统休眠无法唤醒,无法完全关机问题
    java父子类的初始化顺序--个人总结
    java并发包-concurrentMap和CopyOnWriteArrayList
    大浏览量系统的静态化架构设计
    Angular4 innerHtml呈现富文本内容样式
    Angular4项目运行时URL自动加#方法
    在Angular4中使用ng2-baidu-map详解
  • 原文地址:https://www.cnblogs.com/zhjh256/p/6347765.html
Copyright © 2011-2022 走看看