当前位置:网站首页>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
边栏推荐
猜你喜欢
SQL注入中 #、 --+、 --%20、 %23是什么意思?
董明珠直播时冷脸离场,员工频犯低级错误,自家产品没人能弄明白
LeetCode每日一题(2285. Maximum Total Importance of Roads)
关联接口测试
esp8266-01s刷固件步骤
2022广东省安全员A证第三批(主要负责人)考试题库及模拟考试
STM8S project creation (STVD creation) --- use COSMIC to create a C language project
2022年T电梯修理考题及答案
【指针内功修炼】深度剖析指针笔试题(三)
深度学习(三)分类 理论部分
随机推荐
STM8S105k4t6c--------------点亮LED
4路双向HDMI综合业务高清视频光端机8路HDMI高清视频光端机
KingbaseES数据库启动失败,报“内存段超过可用内存”
一个属于程序员的七夕节!
如何读取 resources 目录下的文件路径?
keytool命令
docker+网桥+redis主从+哨兵模式
The keytool command
小程序:扫码打开参数解析
activiti流程执行过程中,数据库表的使用关系
Simple record of Flink principle flow chart
Ant - the design of the Select component using a custom icon (suffixIcon attribute) suffixes, click on the custom ICONS have no reaction, will not display the drop-down menu
QNX Hypervisor] 10.2 vdev 8259 2.2 user manual
Good bosses, please ask the flink CDC oracle to Doris, found that the CPU is unusual, a run down
pytorch应用于MNIST手写字体识别
ant-design的Select组件采用自定义后缀图标(suffixIcon属性)时,点击该自定义图标没有反应,不会展示下拉菜单的问题
Returns the maximum number of palindromes in a string
cdh6.x 集成spark-sql
深度学习(三)分类 理论部分
为什么用Selenium做自动化测试