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。

  • 相关阅读:
    环境配置文件 ① /etc/profile、② ~/.bash_profile、③ ~/.bashrc、④ /etc/bashrc
    RHEL 7.0已发布CentOS 7即将到来
    《上海交通大学饮水思源paper(论文)板实用手册(第二版)》出炉
    SCI论文投稿Cover Letter的写作
    grub.cfg —— Window、Fedora、CentOS
    SCI新手成长策略
    计算机类SCI前三区期刊
    SCI期刊——导航
    SCI收录的外文期刊(计算机类)
    《嵌入式开发》——三次作业
  • 原文地址:https://www.cnblogs.com/zhjh256/p/6347765.html
Copyright © 2011-2022 走看看