Displaying Received fatal alert: handshake_failure

Hi,

While testing one of our REST API services end points, getting handshare failure error.

But same end point is working fine on Chrome browser. Is there something wrong with Katalon or any setting missing ?

For more information - At result log getting below error -

Unable to send request (Root cause: javax.net.ssl.SSLHandshakeException: Received fatal alert: handshake_failure)

Any update on this, please ? It is very urgent…

Do you know protocol you are using from that request?

Hi, Yes we are using Https protocol…

Hi Hari,

Thanks for your information. However, I have a doubt we need to have more details about this SSL protocol such as TLSv1, TLSv1.1 or TLSv1.2. Do you know it from your side?

That error happens because of : https://blogs.oracle.com/java-platform-group/diagnosing-tls,-ssl,-and-https

Can you add the following command to katalon.ini and try again?

-Dhttps.protocols=TLSv1,TLSv1.1,TLSv1.2

Hi Vinh, Thanks for the reply.

I did try the above details updated in katalon.ini but no luck. The same error I am getting.

Also, I did try this the same test in SoupUI and Postmaster; I can see the response. But Keenly I would like to get this worked in Katalon.

Please, let me know further how we can try this.

I’ve added
-Dhttps.protocols=TLSv1,TLSv1.1,TLSv1.2 in katalon.ini file, restarted Katalon Studio and still getting the same error. Any update on this issue?

Hi Noor, this issue not resolved yet. I am waiting for Katalon response on this. I am hoping that they would get back to me with a solution ASAP. Thanks

@ Vinh - You can see Noor message about, He also stuck with the same issue. Any update on this, please…

Hi Hari,

I can’t reproduce it using one of my sites using SSL, and upon researching, I’ve figured out this issue related to connection establishment between server and client which are mostly based on TSL protocol, e.g AWS as an example, and Katalon Studio may not support it in all cases. So likely we will need to let Katalon Studio support it in later releases.

Regards

In the meanwhile for any Web Service objects are currently having this issue, you should handle it manually from supported methods of Katalon Studio, e.g:

import com.kms.katalon.core.testobject.ConditionType
import com.kms.katalon.core.testobject.RequestObject
import com.kms.katalon.core.testobject.ResponseObject
import com.kms.katalon.core.testobject.TestObjectProperty
import com.kms.katalon.core.webservice.common.ServiceRequestFactory
import com.kms.katalon.core.webservice.helper.WebServiceCommonHelper
RequestObject request = new RequestObject();
request.setServiceType("RESTful")
TestObjectProperty contentTypeHeader = new TestObjectProperty("Content-Type", ConditionType.EQUALS, "application/json", true)
request.getHttpHeaderProperties().add(contentTypeHeader)
TestObjectProperty cacheControlHeader = new TestObjectProperty("Cache-Control", ConditionType.EQUALS, "no-cache", true)
request.getHttpHeaderProperties().add(cacheControlHeader)
request.setRestUrl(restUrl)
request.setRestRequestMethod(requestMethod)
request.setHttpBody(httpBody)
// Check request object before sending
WebServiceCommonHelper.checkRequestObject(request)
ResponseObject resObj = ServiceRequestFactory.getInstance(request).send(request);
// Check response object received
WebServiceCommonHelper.checkResponseObject(resObj)
WebServiceCommonHelper.checkResponseObjectContent(resObj)


Hi Katalon Team,

I have also found below error while debug with chrome browser.

Please refer below error : =====================================

Test Cases/TC001_REST_Verify Email From List Of Comments FAILED because (of) Unable to send request (Root cause: javax.net.ssl.SSLHandshakeException: Received fatal alert: handshake_failure)

============================================================

As per above comments I have also added below lines in katalon ini file but still getting this issue.

-Dhttps.protocols=TLSv1,TLSv1.1,TLSv1.2

Reqeuest to provide resolution.

@Hari said:
Hi Noor, this issue not resolved yet. I am waiting for Katalon response on this. I am hoping that they would get back to me with a solution ASAP. Thanks

@ Vinh - You can see Noor message about, He also stuck with the same issue. Any update on this, please…

@Malay J Parikh said:
Hi Katalon Team,

I have also found below error while debug with chrome browser.

Please refer below error : =====================================

Test Cases/TC001_REST_Verify Email From List Of Comments FAILED because (of) Unable to send request (Root cause: javax.net.ssl.SSLHandshakeException: Received fatal alert: handshake_failure)

============================================================

As per above comments I have also added below lines in katalon ini file but still getting this issue.

-Dhttps.protocols=TLSv1,TLSv1.1,TLSv1.2

Reqeuest to provide resolution.

Hi all,

We’ve logged this into our ticket and will look at it as soon as possible. I would like to clarify again this is currently not an issue, but rather than Katalon Studio does not support these kinds of protocols yet, so this ticket will be a support for these protocols

hello @“Vinh Nguyen” , thank you for your help.
I have exactly the same problem with the new version (Katalon studio 5.3). Do you know how long the problem will be corrected?

thank you

Hi there,

This problem currently not addressed. We are trying to address it and if it is fixed, we will release a hotfix for it

I have the same problem I guess with a soap service. Calling it in the WS object is a success … however when integrating it in a test case, I have the ssl handshake problem.

Hi, Any update on this? Please.

I think we should wait for Katalon to support these protocols

Which Katalon release this fix planned? It looks like this is very much essential to use Katalon Web services test features.

1 Like