FAQ

Received fatal alert: handshake_failure error

The user error is shown in the figure, and the scenario is using Hutool-http to request an https server. The cause of the problem is due to the JCE security mechanism in the JDK. The solutions are as follows:

  • Method 1: If you are using JDK8, please upgrade to the latest version of JDK8 (e.g. jdk1.8.0_181).
  • Method 2: Try adding the following code:
System.setProperty("https.protocols", "TLSv1.2,TLSv1.1,SSLv3");