Forum Discussion

ManuNarasimhan's avatar
ManuNarasimhan
New Member
3 months ago

Unsupported or unrecognized SSL message for Mock request in Soapui

I have a mock server created in Soapui in Port 8443. When i hit the mock request with mock end point using https, it says ERROR:javax.net.ssl.SSLException: Unsupported or unrecognized SSL message. However it works fine with http using same port. Any help ? Thanks in Advance.

javax.net.ssl.SSLException: Unsupported or unrecognized SSL message
       at java.base/sun.security.ssl.SSLSocketInputRecord.handleUnknownRecord(SSLSocketInputRecord.java:451)
       at java.base/sun.security.ssl.SSLSocketInputRecord.decode(SSLSocketInputRecord.java:175)
       at java.base/sun.security.ssl.SSLTransport.decode(SSLTransport.java:111)
       at java.base/sun.security.ssl.SSLSocketImpl.decode(SSLSocketImpl.java:1506)
       at java.base/sun.security.ssl.SSLSocketImpl.readHandshakeRecord(SSLSocketImpl.java:1416)
       at java.base/sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:451)
       at java.base/sun.security.ssl.SSLSocketImpl.ensureNegotiated(SSLSocketImpl.java:916)
       at java.base/sun.security.ssl.SSLSocketImpl$AppOutputStream.write(SSLSocketImpl.java:1286)
       at com.eviware.soapui.impl.wsdl.support.http.SoapUILoggingOutputStream.write(SoapUILoggingOutputStream.java:41)
       at org.apache.http.impl.io.SessionOutputBufferImpl.streamWrite(SessionOutputBufferImpl.java:124)
       at org.apache.http.impl.io.SessionOutputBufferImpl.flushBuffer(SessionOutputBufferImpl.java:136)
       at org.apache.http.impl.io.SessionOutputBufferImpl.write(SessionOutputBufferImpl.java:158)
       at org.apache.http.impl.io.ContentLengthOutputStream.write(ContentLengthOutputStream.java:113)
       at org.apache.http.entity.ByteArrayEntity.writeTo(ByteArrayEntity.java:114)
       at org.apache.http.impl.DefaultBHttpClientConnection.sendRequestEntity(DefaultBHttpClientConnection.java:156)
       at org.apache.http.impl.conn.CPoolProxy.sendRequestEntity(CPoolProxy.java:160)
       at org.apache.http.protocol.HttpRequestExecutor.doSendRequest(HttpRequestExecutor.java:238)
       at com.eviware.soapui.impl.wsdl.support.http.HttpClientSupport$SoapUIHttpRequestExecutor.doSendRequest(HttpClientSupport.java:460)
       at org.apache.http.protocol.HttpRequestExecutor.execute(HttpRequestExecutor.java:123)
       at org.apache.http.impl.execchain.MainClientExec.execute(MainClientExec.java:272)
       at org.apache.http.impl.execchain.ProtocolExec.execute(ProtocolExec.java:185)
       at org.apache.http.impl.execchain.RetryExec.execute(RetryExec.java:89)
       at org.apache.http.impl.execchain.RedirectExec.execute(RedirectExec.java:111)
       at org.apache.http.impl.client.InternalHttpClient.doExecute(InternalHttpClient.java:185)
       at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:72)
       at com.eviware.soapui.impl.wsdl.support.http.HttpClientSupport$SoapUIHttpClient.doExecute(HttpClientSupport.java:344)
       at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:83)
       at com.eviware.soapui.impl.wsdl.support.http.HttpClientSupport$Helper.execute(HttpClientSupport.java:548)
       at com.eviware.soapui.impl.wsdl.support.http.HttpClientSupport.execute(HttpClientSupport.java:614)
       at com.eviware.soapui.impl.wsdl.submit.transports.http.HttpClientRequestTransport.submitRequest(HttpClientRequestTransport.java:302)
       at com.eviware.soapui.impl.wsdl.submit.transports.http.HttpClientRequestTransport.sendRequest(HttpClientRequestTransport.java:232)
       at com.eviware.soapui.impl.wsdl.WsdlSubmit.run(WsdlSubmit.java:120)
       at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)
       at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
       at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1130)
       at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:630)
       at java.base/java.lang.Thread.run(Thread.java:831)

1 Reply

  • Humashankar's avatar
    Humashankar
    Champion Level 2

    Hi ManuNarasimhan 

    To resolve SSL-related issues in SoapUI, start by verifying the configuration of your mock service.

    Ensure that you've selected the correct keystore and truststore files, which contain the necessary SSL certificates, and double-check the paths and passwords for these files in SoapUI's preferences under "SSL Preferences".

    In addition, confirm that the client application making the request trusts the self-signed certificate generated by SoapUI's mock service.

    If necessary, import the certificate from SoapUI's keystore into the client's trusted certificate store to establish trust and enable secure communication

    Hope this helps - Happy to help further!!
    Thank you very much and have a great one!
    Warm regards