首页 > 其他 > 详细

WARN: Establishing SSL connection without server's identity verification is not recommended

时间:2017-01-24 21:02:11      阅读:12572      评论:0      收藏:0      [点我收藏+]

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。

WARN: Establishing SSL connection without server's identity verification is not recommended

原文:http://www.cnblogs.com/zhjh256/p/6347765.html

(1)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!