Forum Discussion

Apoorva6's avatar
Apoorva6
Frequent Contributor
2 years ago

Please help with SSL Handshake exception

Hello,

I am trying to trigger a test case in soapUI 5.2.1 from command Linux , with https url and getting handshake exception.  Please help if  anyone aware of how to fix.

Same test works from UI but failing in linux command line.

 

03:52:12,810 DEBUG [SoapUIMultiThreadedHttpConnectionManager$SoapUIDefaultClientConnection] Sending request: CONNECT env.test.gcp.com:443 HTTP/1.1
03:52:12,839 DEBUG [SoapUIMultiThreadedHttpConnectionManager$SoapUIDefaultClientConnection] Receiving response: HTTP/1.1 200 Connected
03:52:12,840 DEBUG [HttpClientSupport$SoapUIHttpClient] Tunnel to target created.
03:52:13,115 DEBUG [HttpClientSupport$SoapUIHttpClient] Attempt 1 to execute request
03:52:13,115 DEBUG [SoapUIMultiThreadedHttpConnectionManager$SoapUIDefaultClientConnection] Sending request: POST /env/bcmai/restservices/gcw/v1/mycontract/clientcontracts/ HTTP/1.1
03:52:22,839 DEBUG [SoapUIMultiThreadedHttpConnectionManager$SoapUIDefaultClientConnection] I/O error closing connection
javax.net.ssl.SSLException: Connection has been shutdown: javax.net.ssl.SSLHandshakeException: Remote host closed connection during handshake

 

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

I have below options in SoapUI-5.2.1.vmoptions

-Dsoapui.https.protocols=SSLv3,TLSv1.2
-Dsoapui.https.ciphers=TLS_RSA_WITH_AES_256_CBC_SHA256
-Dsun.security.ssl.allowUnsafeRenegotiation=true
-Djavax.net.debug=ssl:verbose

 

From groovy too tried enabling proxy below before running api, which didnt help.

import com.eviware.soapui.impl.wsdl.support.http.ProxyUtils
ProxyUtils.setProxyEnabled(true)

No RepliesBe the first to reply