当前位置:网站首页>SSLHandshakeException: No appropriate protocol (protocol is disabled or cipher suites are inappropri
SSLHandshakeException: No appropriate protocol (protocol is disabled or cipher suites are inappropri
2022-08-04 03:04:00 【autumn 9】
【Phenomena】
com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failureThe last packet successfully received from the server was 1 milliseconds ago. The last packet sent successfully to the server was 1 milliseconds ago.at sun.reflect.GeneratedConstructorAccessor50.newInstance(Unknown Source)at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)at java.lang.reflect.Constructor.newInstance(Constructor.java:423)at com.mysql.jdbc.Util.handleNewInstance(Util.java:425)at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:990)at com.mysql.jdbc.ExportControlled.transformSocketToSSLSocket(ExportControlled.java:201)at com.mysql.jdbc.MysqlIO.negotiateSSLConnection(MysqlIO.java:4912)at com.mysql.jdbc.MysqlIO.proceedHandshakeWithPluggableAuthentication(MysqlIO.java:1663)at com.mysql.jdbc.MysqlIO.doHandshake(MysqlIO.java:1224)at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2190)at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2221)at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2016)at com.mysql.jdbc.ConnectionImpl.(ConnectionImpl.java:776)at com.mysql.jdbc.JDBC4Connection.(JDBC4Connection.java:47)at sun.reflect.GeneratedConstructorAccessor34.newInstance(Unknown Source)at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)at java.lang.reflect.Constructor.newInstance(Constructor.java:423)at com.mysql.jdbc.Util.handleNewInstance(Util.java:425)at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:386)at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:330)at com.alibaba.druid.pool.DruidAbstractDataSource.createPhysicalConnection(DruidAbstractDataSource.java:1644)at com.alibaba.druid.pool.DruidAbstractDataSource.createPhysicalConnection(DruidAbstractDataSource.java:1710)at com.alibaba.druid.pool.DruidDataSource$CreateConnectionThread.run(DruidDataSource.java:2774)Caused by: javax.net.ssl.SSLHandshakeException: No appropriate protocol (protocol is disabled or cipher suites are inappropriate)at sun.security.ssl.HandshakeContext.(HandshakeContext.java:171)at sun.security.ssl.ClientHandshakeContext.(ClientHandshakeContext.java:106)at sun.security.ssl.TransportContext.kickstart(TransportContext.java:238)at sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:410)at sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:389)at com.mysql.jdbc.ExportControlled.transformSocketToSSLSocket(ExportControlled.java:186)... 17 common frames omitted
【Solution】
Remove SSLv3, TLSv1, TLSv1.1, and then start the project. The specific operations are as follows:
cd /usr/java/jdk1.8.0_341-amd64/jre/lib/security
vi java.security
jdk.tls.disabledAlgorithms=SSLv3, TLSv1, TLSv1.1, RC4, DES, MD5withRSA, \
DH keySize < 1024, EC keySize< 224, 3DES_EDE_CBC, anon, NULL, \
include jdk.disabled.namedCurves
Modified to:
jdk.tls.disabledAlgorithms=RC4, DES, MD5withRSA, \
DH keySize < 1024, ECkeySize < 224, 3DES_EDE_CBC, anon, NULL, \
include jdk.disabled.namedCurves
边栏推荐
猜你喜欢
2022年最新海南建筑八大员(材料员)模拟考试试题及答案
LeetCode:899. 有序队列【思维题】
Pine Script | How to display and typeset a plot switch?
esp8266-01s刷固件步骤
【指针内功修炼】深度剖析指针笔试题(三)
Countdown to 2 days, the "New Infrastructure of Cultural Digital Strategy and Ecological Construction of Cultural Art Chain" will kick off soon
STM8S105k4t6c--------------点亮LED
Qt中对象树的机制介绍以及底层实现,各种结果分析:(以及自己写容易犯错的点)
2022年T电梯修理考题及答案
KingbaseES数据库启动失败,报“内存段超过可用内存”
随机推荐
Pine Script | How to display and typeset a plot switch?
pytorch applied to MNIST handwritten font recognition
MallBook联合人民交通出版社,推动驾培领域新发展,开启驾培智慧交易新生态
Simple record of Flink principle flow chart
基本表单验证流程
Brush esp8266-01 s firmware steps
STM8S105K4T6------Serial port sending and receiving
new Date将字符串转化成日期格式 兼容IE,ie8如何通过new Date将字符串转化成日期格式,js中如何进行字符串替换, replace() 方法详解
香港服务器有哪些常用的型号
【原创】启动Win10自带的XPS/OXPS阅读器
LeetCode:899. 有序队列【思维题】
系统太多,多账号互通如何实现?
keytool命令
如何读取 resources 目录下的文件路径?
Architecture of the actual combat camp module three operations
基于Qt的目录统计QDirStat
2022.8.3-----leetcode.899
[Study Notes Dish Dog Learning C] Dynamic Memory Management
uni-app 从零开始-基础模版(一)
sqoop ETL工具