• Register
0 votes
475 views

Problem :

I am trying to call an SSL protected web service running on JDK7 based client, but getting bellow error
javax.net.ssl.sslexception received fatal alert unexpected_message
6 5 3
6,930 points

Please log in or register to answer this question.

1 Answer

0 votes

Solution :

No need to enable SSLv2 at the server. Need to disable the SSLv2Hello pseudo-protocol at the client, by removing SSLv2Hello from the enabled TLS protocols and leaving the others:

System.setProperty("https.protocols", "TLSv1,TLSV1.1,TLSV1.2");

Please note that it is a pseudo protocol. It is not SSLv2, it is a compatibility measure to allow some broken servers to accept the hello. 

If followed above process then your issue will be ressolved.

9 7 4
38,600 points

Related questions

0 votes
0 answers 3 views
3 views
Problem: I have a Java application, from which I am trying to connect to a https url but having issues with SSL ending up with the error: Received fatal alert: bad_record_mac (javax.net.ssl.SSLException)How can I go about further debugging this issue?
asked 1 day ago Moumita Bhowmick 12.4k points
0 votes
2 answers 486 views
486 views
Problem : Has anyone faced this error before? I am new to SSL javax.net.ssl.sslexception: received fatal alert: protocol_version
asked Nov 2, 2019 peterlaw 6.9k points
0 votes
1 answer 7 views
7 views
Problem: Javax.net.ssl.sslhandshakeexception received fatal alert bad_certificate.How to resolve this error?
asked Apr 18 sumaiya simi 43.9k points
0 votes
1 answer 5 views
5 views
Problem: Please help me to solve it out : javax net ssl sslhandshakeexception received fatal alert handshake_failure
asked Apr 7 rakib1 51.5k points
0 votes
0 answers 5 views
5 views
Problem: What are my options for resolving this problem? javax.net.ssl.sslhandshakeexception: received fatal alert: handshake_failure
asked Apr 7 rakib1 51.5k points
0 votes
3 answers 285 views
285 views
Problem : I am trying to setup a SSL Socket connection. But i am getting below error javax.net.ssl.sslhandshakeexception received fatal alert bad_certificate
asked Oct 23, 2019 peterlaw 6.9k points
0 votes
1 answer 703 views
703 views
Problem : I have a java complied package and it is sopposed to communicate with https server on net. But when i try running the compilation gives the following exception: javax.net.ssl.sslexception: unrecognized ssl message, plaintext connection?
asked Oct 23, 2019 peterlaw 6.9k points
0 votes
1 answer 3 views
3 views
Problem: In my Action, I am trying to send some data to the bank server but without any luck, because I have as a result from the server the following error: error: javax.net.ssl.SSLHandshakeException: Received fatal alert: handshake_failure
asked Mar 30 ummesalma 29.2k points
0 votes
1 answer 5 views
5 views
Problem: I am getting this exception when I try to do HTTPS Post of a web service through internet: javax.net.ssl.SSLHandshakeException: Remote host closed connection during handshake.
asked Apr 25 ummeshani 8.8k points