getting Error getting response; javax.net.ssl.SSLException: Couldn't kickstart handshaking

Originally posted by arunbharath on March 16, 2020

Hi All. When I’m trying to run Rest API call from readyAPI, I’m getting below error

Error getting response; javax.net.ssl.SSLException: Couldn't kickstart handshaking

I don’t know what is the error here? I’m using ReadyAPI 3.1.0, same api is working fine in ReadyAPI 3.0.0

Originally posted by nmrao on March 16, 2020

How does end point look like? Check if you are using http instead of https.

Originally posted by arunbharath on March 17, 2020

Hi nmaro. My endpoint is looking fine. It has to be in the format of https://{ip-address}/service. Same endpoint was working fine earlier with version 3.1.0 also it is working fine in versions like 3.0.0

Originally posted by nmrao on March 17, 2020

Using any key store / certificates? Are they expired? Just to ensure good from that front.

Originally posted by nmrao on March 17, 2020

Also worth checking below thread
How to enable TLS 1.2 in SoapUI

Originally posted by HimanshuTayal on March 17, 2020

Hi arunbharath ,

Generally Handshake error occurs :

when there is difference in TLS of both application endpoint and soapui.

You can correct the version in .vmoptions file located in bin folder of your soapui

Originally posted by arunbharath on March 18, 2020

Hi HimanshuTayal, Below is my .vmoption file contents, I’m not sure what to chage?

-XX:MinHeapFreeRatio=20
-XX:MaxHeapFreeRatio=40
-Xms128m
-Xmx8000m
-Dsoapui.properties=soapui.properties
-Dsoapui.home=C:\Program Files\SmartBear\ReadyAPI-3.1.0/bin
-Dsoapui.ext.libraries=C:\Program Files\SmartBear\ReadyAPI-3.1.0/bin/ext
-Dsoapui.ext.listeners=C:\Program Files\SmartBear\ReadyAPI-3.1.0/bin/listeners
-Dsoapui.ext.actions=C:\Program Files\SmartBear\ReadyAPI-3.1.0/bin/actions
-Dwsi.dir=C:\Program Files\SmartBear\ReadyAPI-3.1.0/wsi-test-tools
-Djava.library.path=C:\Program Files\SmartBear\ReadyAPI-3.1.0/bin
-Djava.util.Arrays.useLegacyMergeSort=true
-Dsun.net.http.allowRestrictedHeaders=true
-Djava.security.manager=com.smartbear.ready.ReadyApiSecurityManager

Originally posted by HimanshuTayal on March 18, 2020

arunbharath ,

Add below in your .vmoption file

-Dsoapui.https.protocols=<TLSv1.2, TLSv1, SSLv3>

just specify single version which you want to use. Hope it will resolve your issue.

Originally posted by arunbharath on March 19, 2020

HimanshuTayal . Addding -Dsoapui.https.protocols=TLSv1.2 is resloved the ssl exception issue, but new problem is response is not showing up. Request went through successfully, even I’m able to see the response in the logs but not in the response panel.

Originally posted by nmrao on March 19, 2020

The system argument details was given already in the link above; looks you missed other day.

Which service REST or SOAP ? Have you looked at xml or json tabs?

Originally posted by arunbharath on March 19, 2020

nmrao those are rest service. Yes I checked those JSON and XML tabs. I’m not seeing anything

Please fine my system prop

-XX:MinHeapFreeRatio=20
-XX:MaxHeapFreeRatio=40
-Xms128m
-Xmx8000m
-Dsoapui.properties=soapui.properties
-Dsoapui.home=C:\Program Files\SmartBear\ReadyAPI-3.1.0/bin
-Dsoapui.ext.libraries=C:\Program Files\SmartBear\ReadyAPI-3.1.0/bin/ext
-Dsoapui.ext.listeners=C:\Program Files\SmartBear\ReadyAPI-3.1.0/bin/listeners
-Dsoapui.ext.actions=C:\Program Files\SmartBear\ReadyAPI-3.1.0/bin/actions
-Dwsi.dir=C:\Program Files\SmartBear\ReadyAPI-3.1.0/wsi-test-tools
-Djava.library.path=C:\Program Files\SmartBear\ReadyAPI-3.1.0/bin
-Djava.util.Arrays.useLegacyMergeSort=true
-Dsun.net.http.allowRestrictedHeaders=true
-Djava.security.manager=com.smartbear.ready.ReadyApiSecurityManager
-Dweblogic.security.SSL.minimumProtocolVersion=TLSv1.2
-Dsoapui.https.protocols=SSLv3,TLSv1.2

Originally posted by nmrao on March 19, 2020

What do you get in raw response?
Are you supposed to get any payload in response?
What status code are you getting?
Worth checking with service provider or your team regarding the same if you are not seeing the expected response.

Originally posted by HimanshuTayal on March 19, 2020

arunbharath : Great to hear you are able to successfully got the response.

Hope soapui-handshake-failure-on-https-endpoint-service link will help you on other part of not getting Response in SoapUI

Originally posted by sonya_m on March 26, 2020

Thank for helping, Community!

arunbharath , please share your progress with us:smileyhappy:

Originally posted by sonya_m on March 31, 2020

arunbharath any updates?