• Register
0 votes
363 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
2 answers 375 views
375 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
3 answers 226 views
226 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 360 views
360 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
2 answers 1.2K views
1.2K views
Problem: I am attempting to download records from a https webpage and continue getting the accompanying error: OpenSSL: error:14077410:SSL routines:SSL23_GET_SERVER_HELLO:sslv3 alert handshake failure Unable to establish SSL connection. From perusing sites online I assemble I need to give ... alternative however that didn't work. wget version: wget-1.13.4 openssl version: OpenSSL 1.0.1f 6 Jan 2014
asked Nov 30, 2019 alecxe 7.5k points
0 votes
1 answer 1.9K views
1.9K views
Problem : I had to remove a +CompatEnvVars from following : SSLOptions +FakeBasicAuth +ExportCertData +CompatEnvVars +StrictRequire As it said it was an invalid command or something. So having removed that and following a instructions to a nail it get below error: ... maximum permissible length. (Error code: ssl_error_rx_record_too_long) I am very new to SSL, any advice on what is going wrong?
asked Jan 17, 2020 jwilliam 3.9k points
0 votes
1 answer 10 views
10 views
Has anyone encountered this error before?
asked Dec 28, 2020 TeamScript 9.5k points
0 votes
1 answer 137 views
137 views
Problem : With my two classes I want to connect to the MySQL database. But, I always get below error: Wed Dec 04 10:46:52 CET 2019 WARN: Establishing SSL connection without server's identity verification is not recommended. According to MySQL 5.5.45+, 5.6.26+ and 5.7.6+ ... public void close(){ if(conn != null){ try { conn.close(); } catch (SQLException e) { e.printStackTrace(); } } } }
asked Dec 4, 2019 alecxe 7.5k points
0 votes
1 answer 144 views
144 views
Problem : Experiencing bellow error javax.net.ssl.sslpeerunverifiedexception: peer not authenticated
asked Nov 5, 2019 peterlaw 6.9k points