This article is a mirror article of machine translation, please click here to jump to the original article.

View: 23869|Reply: 0

[Source] The server selected protocol version TLS10 is not accepted ...

[Copy link]
Posted on 10/11/2021 11:13:18 AM | | | |
Colleagues reported that a Java program recently reported an error with the following log:

Caused by: com.coho.cloud.data.exception.BizException: I/O error on GET request for "https://itsvse:88/rest/api": The server selected protocol version TLS10 is not accepted by client preferences [TLS12]; nested exception is javax.net.ssl.SSLHandshakeException: The server selected protocol version TLS10 is not accepted by client preferences [TLS12]

Search online to find the reasonIt may be that the new version of the JDK does not recommend using the old TLSV1.0 protocol, so TLS10 support is removed by default

Log in to the server to view the historical commands executed and find that the update operation has been executed, as shown in the following figure:



Check out the JDK version, as follows:

openjdk version "1.8.0_292"
OpenJDK Runtime Environment (build 1.8.0_292-8u292-b10-0ubuntu1~16.04.1-b10)
OpenJDK 64-Bit Server VM (build 25.292-b10, mixed mode)



Use the following command to view the installation address of the JDK and the loaded contents:



Find the /usr/lib/jvm/java-8-openjdk-amd64/jre/lib/security/java.security file, which is just a soft link, the actual file address is: /etc/java-8-openjdk/security/java.security, editjava.securityFile.

Original configuration:

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
The amendments are as follows:

Re-server, re-run the Java program.

(End)





Previous:iDRAC 9 default IP address management account and password
Next:docker how to remove a none image
Disclaimer:
All software, programming materials or articles published by Code Farmer Network are only for learning and research purposes; The above content shall not be used for commercial or illegal purposes, otherwise, users shall bear all consequences. The information on this site comes from the Internet, and copyright disputes have nothing to do with this site. You must completely delete the above content from your computer within 24 hours of downloading. If you like the program, please support genuine software, purchase registration, and get better genuine services. If there is any infringement, please contact us by email.

Mail To:help@itsvse.com