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
3
votes
1 answer

Using Volley Getting SSLHandshakeException on Android

Our server is using a CA (certificate authority) which is not one of the CA's included on Android (Go Daddy). I am using Volley(https://android.googlesource.com/platform/frameworks/volley/) for my network requests, and therefore am unsure of how to…
3
votes
2 answers

Certificate not being sent sporadically

In my application I have 2 components talking to each other with REST (client-server based). The application can be configured to use HTTP or HTTPS (self signed certificate). From time to time when I start my application on HTTPS mode, my client…
danieln
  • 4,795
  • 10
  • 42
  • 64
3
votes
3 answers

Unable to connect to HTTPS urls using java

i want to read secure urls (HTTPS) using java. I am trying the following. Its giving me public static void main(String[] arg) { try { URL url = new URL("http://www.google.com"); System.out.println("Connecting to…
Chintanboman
  • 31
  • 1
  • 2
3
votes
0 answers

Mutual SSL working with soapUI but not standalone Java client

I am trying to get mutual SSL working from a Java client. My soapUI configuration works where I have specified keystore and truststore in WS-security configurations. When I do the same with a Java client with the following system…
3
votes
2 answers

How can I reduce the waiting time for ssl handshake?

I have the following code from http://sanjaal.com/java/tag/get-public-key-of-ssl-certificate-in-java/ that creates a socket and initiate ssl handshake. SSLSocketFactory factory =…
Jury A
  • 19,192
  • 24
  • 69
  • 93
2
votes
0 answers

Exit with code 1 due to network error: SslHandshakeFailedError

I am trying to convert an HTML web page using wkhtmltopdf API and pdfkit library. But when I am entering the URL of any web page it is showing me this error. Traceback (most recent call last): File "c:\\Users\\Fai\\Desktop\\doc\\convert.py", line…
2
votes
2 answers

HANDSHAKE_FAILURE alert received

I am writing a Java client (on weblogic 10.3) to invoke a secure web service. I have been provided with a client certificate which I have installed in cacerts, DemoIdentity.jks and DemoTrust,jks In my weblogic I have set up keystore as DemoIdentity…
Priyanka
  • 23
  • 1
  • 2
  • 6
2
votes
1 answer

Wrong version number error on *some* websites during handshake with Asio and OpenSSL

I'm trying to send https web requests with Asio and OpenSSL. My code is working fine on most of the sites I tried it on, but on some others, I get an error during the handshake handshake: wrong version number (SSL routines, ssl3_get_record). I've…
adepierre
  • 73
  • 1
  • 5
2
votes
0 answers

Why am I getting a handshake time out after 10000ms?

I am facing this handshake timed out after 10000ms while connecting via api gateway I am getting below error in my API gateway while connecting to one of the micro-service REST api via this gateway url. ERROR…
Sdcoder
  • 33
  • 2
  • 4
2
votes
0 answers

Karate - Getting fatal alert: unrecognized_name when trying to send post request using proxy

I have an existing project using karate-junit5:1.1.0 to test an API. When ran locally from my laptop everything is working as expected. I'm implementing the same test in Jenkins and we need to use a proxy server to connect to external URLs from…
brian
  • 43
  • 4
2
votes
1 answer

Recived SSLHandshakeException: Received fatal alert: handshake_failure from Payara server while trying to connect Third party URLs

Server: Payara 5.192 JDK: 8 update 121 Hello, I am trying to connect third-party URLs from my web application and getting an SSL Exception. As per few forums, I tried to apply wild-card certificates on the server but the issue remained the same. I…
2
votes
1 answer

How do I ignore Server Certificate with okhttp3 using IP Address?

I am trying to ignore the server certificate with the lines: clientCertificatesBuilder.addInsecureHost(HOST); .sslSocketFactory(clientCertificates.sslSocketFactory(), clientCertificates.trustManager()) .hostnameVerifier((hostname, session) ->…
lfische
  • 31
  • 5
2
votes
1 answer

Handshake failed due to invalid Connection header [Keep-Alive]

I have a websocket project, develop it on Weblogic 12c and Spring MVC 5.1.0.RELEASE When i running project on local tomcat, its working normally, but when trying to deploy on Weblogic, its gave below error. (Error only occurs with secure domain,…
2
votes
2 answers

Java HttpsURLConnection SSLHandshakeException

I am attempting to make a HTTPS connection to a website using HttpsURLConnection, and then perform a PUT request. When I try to create the OutputStreamWriter from HttpsURLConnection.getOutputStream(), the following exception is…
caroline
  • 291
  • 5
  • 12
2
votes
1 answer

ElasticSearch: No subject alternative names matching IP address 0:0:0:0:0:0:0:1 found

When I start my ES nodes, I've been seeing the message client did not trust this server's certificate, closing connection and the following exception. Anybody knows what it is about? After some seconds the exceptions stop and the clsuter seems to…
Daniel
  • 21,933
  • 14
  • 72
  • 101