Displaying Received fatal alert: handshake_failure

Used to have this error, but this post helps me:

1. Download InstallCert.java in this place: https://github.com/escline/InstallCert

2. Compile it using this Windows command line:

javac InstallCert.java

3. Execute the following windows command line one by one:

java InstallCert <your_web_host>

keytool -exportcert -alias <your_web_service_host>-1 -keystore jssecacerts -storepass changeit -file <your_web_service_host>.cer

keytool -importcert -alias <your_web_service_host>.net -keystore “jre\lib\security\cacerts” -storepass changeit -file <your_web_service_host>.cer

Example:

java InstallCert staging.katalon.net

keytool -exportcert -alias staging.katalon.net-1 -keystore jssecacerts -storepass changeit -file staging.katalon.net.cer

keytool -importcert -alias staging.shoutforgood.net -keystore “C:\Katalon_Studio_Windows_64-5.3\jre\lib\security\cacerts” -storepass changeit -file staging.katalon.net.cer

4. Download jar from below link and add to security folder of Katalon Studio: C:\Katalon_Studio_Windows_64-5.3.0\Katalon_Studio_Windows_64-5.3.0\jre\lib\security
http://www.oracle.com/technetwork/java/javase/downloads/jce8-download-2133166.html

but the problem remains, why when calling the API inside the object api it works and when I include it in a test suit, it starts to do handshake failure … katalon was able to call it elsewhere in the same program …

Hello guys,

When is the formal fix for this issue will be released? We are really stuck on this issue.

Hello All,

FYI,

This issue has been resolved using Rest assured API through Katalon. Working Brilliant. However, this at least gives us a workaround till Katalon comes with a proper fix.

Let me know if you need more information…

Hari said:

Hello All,

FYI,

This issue has been resolved using Rest assured API through Katalon. Working Brilliant. However, this at least gives us a workaround till Katalon comes with a proper fix.

Let me know if you need more information…

Hi,

how do you use it please ?

Hi - Any update on this fix for next release. Keen to know the update as we are managing with Rest assured through Katalon.

@Vinh Nguyen - Hi Vinh, The latest version 5.3.1.1 has this issue fixed?

Hari said:

@Vinh Nguyen - Hi Vinh, The latest version 5.3.1.1 has this issue fixed?

I just tried, it is not corrected

Hi, I tested this with the latest build. shame that it is not yet fixed. at least give us a road map for the fix so we can plan for an alternative our further works.

We still think it should be fixed as a priority as it is very important for most of the people.

Thanks

@Vinh Nguyen Hi ! Thank you for the new version 5.4 ! I retested but the problem is not fixed… Do you have a solution ? Thanks !

2 Likes

Same here even I have tested with the services which are running n AWS . no luck yet. Please give us a fix for this soon. wee need this very urgent.

3 Likes

Hello Team,

Thanks for 5.4.1 with few fixes. But this issue still exits in this version as well. Could you please take this up as priority ? As these days most of the Micro service projects built on AWS api gate way model…I think fixing this issue will help Katalon community a lot.

error image is here

Please do that needful. Thanks

1 Like

I also want to know when the fix is going to be launched, i have the same problem =/

Hi, Thanks for newer version 5.4.2. But this issue looks like not fully resolved. I just. tested a simple JIRA API behind the firewall. Throwing below error.

Please let me know if any settings to be done to test API behind the firewall.

(Stack trace: java.net.UnknownHostException: apitester.atlassian.net

at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:184)

at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:172)

at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)

at java.net.Socket.connect(Socket.java:589)

at sun.security.ssl.SSLSocketImpl.connect(SSLSocketImpl.java:668)

at sun.security.ssl.BaseSSLSocketImpl.connect(BaseSSLSocketImpl.java:173)

at sun.net.NetworkClient.doConnect(NetworkClient.java:180)

at sun.net.www.http.HttpClient.openServer(HttpClient.java:432)

Also tested an API from AWS, throwing below error. But this time handshake error is not throwing.

(Stack trace: java.net.ConnectException: Connection timed out: connect

at java.net.DualStackPlainSocketImpl.connect0(Native Method)

at java.net.DualStackPlainSocketImpl.socketConnect(DualStackPlainSocketImpl.java:79)

at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:350)

at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:206)

at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:188)

at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:172)

at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)

at java.net.Socket.connect(Socket.java:589)

at sun.security.ssl.SSLSocketImpl.connect(SSLSocketImpl.java:668)

at sun.security.ssl.BaseSSLSocketImpl.connect(BaseSSLSocketImpl.java:173)

at sun.net.NetworkClient.doConnect(NetworkClient.java:180)

at sun.net.www.http.HttpClient.openServer(HttpClient.java:432)

at sun.net.www.http.HttpClient.openServer(HttpClient.java:527)

at sun.net.www.protocol.https.HttpsClient.(HttpsClient.java:264)

at sun.net.www.protocol.https.HttpsClient.New(HttpsClient.java:367)

at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.getNewHttpClient(AbstractDelegateHttpsURLConnection.java:191)

at sun.net.www.protocol.http.HttpURLConnection.plainConnect0(HttpURLConnection.java:1148)

at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:999)

at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(AbstractDelegateHttpsURLConnection.java:177)

at sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1513)

at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1441)

at java.net.HttpURLConnection.getResponseCode(HttpURLConnection.java:480)

at sun.net.www.protocol.https.HttpsURLConnectionImpl.getResponseCode(HttpsURLConnectionImpl.java:338)

at com.kms.katalon.core.webservice.common.RestfulClient.response(RestfulClient.java:163)

at com.kms.katalon.core.webservice.common.RestfulClient.sendGetRequest(RestfulClient.java:79)

at com.kms.katalon.core.webservice.common.RestfulClient.send(RestfulClient.java:48)

at com.kms.katalon.controller.WebServiceController.sendRequest(WebServiceController.java:37)

at com.kms.katalon.composer.webservice.parts.RestServicePart$2$1.run(RestServicePart.java:131)

at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:119)

1 Like

I am also facing the same issue. Testcase failed because of

Unable to send request (Root cause: javax.net.ssl.SSLHandshakeException: Remote host closed connection during handshake

OS: macOS High sierra 10.13.5
katalon:5.4.2

hi @Vinh Nguyen

I downloaded version 5.5.0 and the problem came back ... I had to downgrade to version 4.4.2 to have stability
Do you have a solution in version 5.5.0?Thanks

Facing the same issue with version 5.5.0 as well. Please fix this on priority or suggest the workaround.

1 Like

I also have this issue, after upgrade to 5.5. (as far as I can tell).

hello, today download the latest version of katalon study and I also have the same problem, can you help us? what can we do to correct this error and keep working with our API test cases.