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。

  • 相关阅读:
    rabbitmq消息路由
    rabbitmq消息消费
    python中的正则匹配
    Spectral Grouping Using Nystrom Method
    基于WKPCA的多路谱聚类算法
    基于加权KPCA的谱聚类算法
    单词拆分
    完全平方数
    零钱兑换
    组合总数
  • 原文地址:https://www.cnblogs.com/zhjh256/p/6347765.html
Copyright © 2011-2022 走看看