Tag Archives: javax.net.ssl.SSLHandshakeException: Received fatal alert: handshake_failure

[Solved] javax.net.ssl.SSLHandshakeException: Received fatal alert: handshake_failure

background

Java version 1.8 0. Today, I tried to access an HTTPS interface with Java, but threw the following exception:

javax.net.ssl.SSLHandshakeException: Received fatal alert: handshake_failure

reason

Starting from java8 update31, SSL V3 protocol is disabled by default due to security vulnerabilities in SSL protocol.

Solution:

Find the JDK 1.8 installation directory. For example, my java folder is called jdk1.8.0_301, find the Java Security file

Delete the three algorithms in the figure in the file

Delete as shown in the figure

Finally, restart the project.