Programmers learn & share
0 votes

Problem :

I am trying to call an SSL protected web service running on JDK7 based client, but getting bellow error received fatal alert unexpected_message
by (6.9k points)   | 103 views

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.

by (36.1k points)  
2,183 questions
2,491 answers
241 users