Questions tagged [sslhandshakeexception]

This Java Exception is raised during an SSL/TLS Handshake and usually triggered by some incompatibility between the client and the server.

The possible incompatibilities typically are : TLS versions, Cipher Suites, Options, Certificate validation.

Once raised, the connection is no longer usable. If it follows a previous correctly established handshake, the Session Identifier is no more considered as correct.

529 questions
15
votes
2 answers

HandShake Failure in python(_ssl.c:590)

When I execute the below line, req = urllib2.Request(requestwithtoken) self.response = urllib2.urlopen(req,self.request).read() I am getting the following exception: SSLError: [SSL: SSLV3_ALERT_HANDSHAKE_FAILURE] sslv3 alert handshake failure…
15
votes
3 answers

Ignore SSL Certificate in a Servlet

I am getting the following exception: javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to…
Tim
  • 3,910
  • 8
  • 45
  • 80
15
votes
2 answers

SQL Server Pre-Login Handshake

I'm connecting to MSSQL database through my ASP .NET application, but sometimes I got this error while opening connection. Connection Timeout Expired. The timeout period elapsed while attempting to consume the pre-login handshake acknowledgement.…
Ahmed Negm
  • 865
  • 1
  • 11
  • 30
15
votes
1 answer

Android emulator http-proxy SSL handshake failure

I have a local HTTP proxy set up for debugging .json request and response data from my Android application. I deploy it to a Nexus One emulator image running Android 4.2.2 with the command line option -http-proxy http://localhost:8888. I'm using a…
Steven
  • 273
  • 1
  • 6
  • 17
14
votes
1 answer

Android SSLSocket handshake failure in Android 6 and above

I've written a server based on a Java SSLServerSocket that accepts connections and communicates to android applications via a custom binary protocol: ServerSocket serverSocket = SSLServerSocketFactory.getDefault().createServerSocket(1234); while…
John Ericksen
  • 10,995
  • 4
  • 45
  • 75
12
votes
4 answers

Restlet javax.net.ssl.SSLHandshakeException: null cert chain

I am testing SSL communication between client and server locally. So I generated certificate using OpenSSL commands. Added this certificate in cacert file. Also generated .p12 file. I am using the same .p12 file in server and client. This is the…
vikas27
  • 563
  • 5
  • 14
  • 36
11
votes
1 answer

"Received fatal alert: handshake_failure" in jlinked JRE

My Java program sends requests by java.net.http.HttpClient (Java 11). It works when I am running it in Eclipse on OpenJDK 11's JRE. On custom jlinked JRE, I get an error: java.io.IOException: Received fatal alert: handshake_failure I suppose the…
janzdanowski
  • 111
  • 1
  • 4
11
votes
2 answers

SSL Handshake Failed in BB10 QNX Momentics IDE

I'm trying to make a connection to a web service that uses SSL. I'm working with Blackberry 10 in C++ with the QNX IDE Momentics. The connection that I'm trying to do is as follows: URL: "https://movilapi...." Code: networkAccessManager = new…
10
votes
1 answer

After upgrading to Java 8u292, TLS connection fails with SSLHandshakeException

I have a LXC CentOS 7 host running WildFly 21.0.2. The application server connects to a MariaDB 10.4.18 database using a two-way TLS connection (mutual authentication) and the MySQL Connector/J 5.1.47 JDBC driver. It worked fine until the upgrade…
David Le Borgne
  • 801
  • 2
  • 9
  • 23
10
votes
4 answers

Exception at start of request - ClientAuth SSL

I have an application embedding Jetty. I would like to use client cert authentication in SSL and when I enable that; I am getting the following exception at start of request. But the request is getting served properly after that. This exception…
vpram86
  • 5,860
  • 4
  • 28
  • 40
10
votes
1 answer

Apache Bench: SSL handshake failing directly related to concurrency level

I ran some tests on ab and when I use a concurrency level of over 155 I get the following: SSL handshake failed (5). SSL handshake failed (5). SSL handshake failed (5). SSL handshake failed (5). SSL handshake failed (5). SSL handshake failed…
C_B
  • 2,620
  • 3
  • 23
  • 45
9
votes
2 answers

Intellij idea. javax.net.ssl.SSLHandshakeException: No appropriate protocol (protocol is disabled or cipher suites are inappropriate)

After the IntelliJ idea update, I got the exception when trying to connect to DB. javax.net.ssl.SSLHandshakeException: No appropriate protocol (protocol is disabled or cipher suites are inappropriate).
9
votes
4 answers

Not able to connect to server through java code. Getting javax.net.ssl.SSLHandshakeException: Received fatal alert: handshake_failure

I am trying to build a Test Automation Tool for REST API on AWS using rest-assured framework. I just tried with a simple HTTP POST and checking the output JSON body. But when I run that in Eclipse I get SSLHandshakeException. I did try to look into…
kaizen
  • 108
  • 1
  • 1
  • 7
9
votes
3 answers

SSL Handshake Failed - Java 1.8

Just letting folks know about an issue I had that many seemed to have had after upgrading to Java 1.8. Not all of the solutions are the same hence posting how I resolved this. But first... This is not a solution worthy of production systems since…
James
  • 1,263
  • 2
  • 12
  • 12
9
votes
1 answer

Scala: How to ignore 'SSLHandshakeException'

With such code: val html = Source.fromURL("https://scans.io/json") Getting exception: Exception in thread "main" javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path building failed:…
littleAlien
  • 721
  • 2
  • 8
  • 20
1
2
3
35 36