Skip to content
Advertisement

javax.net.ssl.SSLHandshakeException: Received fatal alert: handshake_failure java 1.7_45

I have an https web page that I need to access and get some file, I am using Java 1.7_45 and apache httpclient 4.5.1 when I execute the client request I get the error(If I change to Java 8 it works, but I cannot change it to Java 8):

I tried everything that I found on the internet as add those VM arguments

JavaScript

change the jars on the folder jre/lib/security

the funny thing is on the bug shows that the java is using TLSv1 but the server does not accept that, I believe that is why of the error but I tried everything to change it.

JavaScript

My block code that is getting the error basically is :

JavaScript

the result of debug mode is

JavaScript

Advertisement

Answer

I solved this issue but using this snippet code

JavaScript
User contributions licensed under: CC BY-SA
6 People found this is helpful
Advertisement