SOAP UI: Enabling TLSv1.2 / SSLv3

Problem: Error in Connecting to  HTTPS Web Services / REST Services with changes in SSL

Error Details: ERROR: Exception in request: javax.net.ssl.SSLHandshakeException: Remote host closed connection during handshake

Mon Nov 12 11:06:13 GST 2018:DEBUG:Sending request: CONNECT eaglehills.api.crm4.dynamics.com:443 HTTP/1.1
Mon Nov 12 11:06:14 GST 2018:DEBUG:Receiving response: HTTP/1.1 200 Connection Established
Mon Nov 12 11:06:14 GST 2018:DEBUG:Tunnel to target created.
Mon Nov 12 11:06:14 GST 2018:DEBUG:Attempt 1 to execute request
Mon Nov 12 11:06:14 GST 2018:DEBUG:Sending request: POST /XRMServices/2011/Organization.svc HTTP/1.1
Mon Nov 12 11:06:14 GST 2018:DEBUG:I/O error closing connection
javax.net.ssl.SSLException: Connection has been shutdown: javax.net.ssl.SSLHandshakeException: Remote host closed connection during handshake
at sun.security.ssl.SSLSocketImpl.checkEOF(Unknown Source)
at sun.security.ssl.SSLSocketImpl.checkWrite(Unknown Source)
at sun.security.ssl.AppOutputStream.write(Unknown Source)
at org.apache.http.impl.io.AbstractSessionOutputBuffer.flushBuffer(AbstractSessionOutputBuffer.java:131)
at org.apache.http.impl.io.AbstractSessionOutputBuffer.flush(AbstractSessionOutputBuffer.java:138)
at org.apache.http.impl.conn.LoggingSessionOutputBuffer.flush(LoggingSessionOutputBuffer.java:95)
at java.util.concurrent.FutureTask.run(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Caused by: javax.net.ssl.SSLHandshakeException: Remote host closed connection during handshake
at sun.security.ssl.SSLSocketImpl.readRecord(Unknown Source)
at sun.security.ssl.SSLSocketImpl.performInitialHandshake(Unknown Source)
at sun.security.ssl.SSLSocketImpl.writeRecord(Unknown Source)
at sun.security.ssl.AppOutputStream.write(Unknown Source)
at org.apache.http.impl.io.AbstractSessionOutputBuffer.flushBuffer(AbstractSessionOutputBuffer.java:131)
at org.apache.http.impl.io.AbstractSessionOutputBuffer.write(AbstractSessionOutputBuffer.java:151)
… 14 more
Caused by: java.io.EOFException: SSL peer shut down incorrectly
at sun.security.ssl.InputRecord.read(Unknown Source)
… 32 more
Mon Nov 12 11:06:14 GST 2018:DEBUG:Closing the connection.

 

Fix: Enable the TLS in SOAPUI vm options as below

Step 1: Navigate to bin folder at C:\SmartBear\SoapUI-5.3.0\bin

Step 2: Add the below entry in SoapUI-5.3.0.vmoptions file

Step 3: Save the file and restart the SOAP UI

Leave a comment