• Register
Welcome to Kodlogs, programming questions and answer website.
0 votes
8 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
by (6.9k points)  

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 (20.3k points)  
...