Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

SSL FATAL ERROR - Handshake Failure (40)

Tags:

java

ssl

firefox

I am trying to access the web application hosted in our radius server and the Firefox browser throws this error code ssl_error_no_cypher_overlap. The following is the message displayed in the browser.

An error occurred during a connection to X.X.X.X. Cannot communicate securely with peer: no common encryption algorithm(s). (Error code: ssl_error_no_cypher_overlap)

After surfing the internet, I thought the cipher suites which are exchanged between the client and server caused the problem and tried capturing the packet. Surprisingly there is a common cipher between the client and server and the Server Hello is sent from the server as well.

Client Hello Packet:

enter image description here

Server Hello Packet:

enter image description here

With in a few seconds, the server sends a fatal error says handshake failure (40).

enter image description here

Does anyone has faced this issue before and any idea what would have caused the problem?

My server is Java 6 based, it uses the encryption algorithm DSA with SHA1 and I am using the latest Firefox 40.0.

like image 898
Loganathan Mohanraj Avatar asked Aug 12 '15 16:08

Loganathan Mohanraj


People also ask

What is SSL handshake failure?

A TLS/SSL handshake failure occurs when a client and server cannot establish communication using the TLS/SSL protocol. When this error occurs in Apigee Edge, the client application receives an HTTP status 503 with the message Service Unavailable.


1 Answers

After surfing the internet for a long time, I came to know that the support for DSA encryption is disabled permanently by the latest browsers which caused the handshake failure (40).

There are several security enhancements done in Firefox in the recent days. Read more:

https://hacks.mozilla.org/2015/04/trainspotting-firefox-37-developer-edition-and-more/

The interesting thing that I am wondering here is, the cipher suites are exchanged between client and server successfully and after few seconds handshake failure is sent from server though there is no packet is exchanged from client.

Anyway, the handshake is happening properly with RSA encryption and I will mark my answer as correct till I get a best answer from someone.

like image 86
Loganathan Mohanraj Avatar answered Sep 20 '22 16:09

Loganathan Mohanraj