Forum Discussion

exception's avatar
exception
Occasional Contributor
12 years ago

SSLException: Unrecognized SSL message, plaintext connection

Hello everyone! It's my first time to use soapUI 4.5.2 as mock web service so please bare with me.

Whenever I try to send a request with URL http (http://lt7:8088/mockTempSOAP), I received the correct response.
Thu Jun 27 11:41:46 SGT 2013:INFO:Got response for [TempSOAP.update:Request 1] in 21ms (409 bytes)


However, when I try to send a request with URL https (https://lt7:8088/mockTempSOAP), I received this error:
Thu Jun 27 11:39:56 SGT 2013:ERROR:Exception in request: javax.net.ssl.SSLException: Unrecognized SSL message, plaintext connection?
Thu Jun 27 11:39:56 SGT 2013:ERROR:An error occured [Unrecognized SSL message, plaintext connection?], see error log for details
Thu Jun 27 11:39:56 SGT 2013:INFO:Error getting response for [TempSOAP.update:Request 1]; javax.net.ssl.SSLException: Unrecognized SSL message, plaintext connection?


Below is my configuration:
SoapUI SSL Setting Preference


MockService Options


I also added
-Dsun.security.ssl.allowUnsafeRenegotiation=true
in soapUI-4.5.2.vmoptions.

By the way, I generated the keystore using Java console (http://docs.oracle.com/cd/E19509-01/820 ... index.html) and Thawte as for my trial SSL certificate. For the keystore conversion, from .jks to .pfx, I used Portecle (http://geekswithblogs.net/gvdmaaden/arc ... ation.aspx).

Hope some experts here could help me. Thank you in advance!
  • nmrao's avatar
    nmrao
    Champion Level 3
    As showing in the screen shot, have you tried with Enable Mock SSL selected?
  • exception's avatar
    exception
    Occasional Contributor
    Edited my configuration:


    Below are the responses using different URLS.
    1. http://lt7:8088/mockTempSOAP
    Thu Jun 27 14:54:37 SGT 2013:INFO:Got response for [TempSOAP.update:Request 1] in 405ms (418 bytes)


    2. https://lt7:8088/mockTempSOAP
    Thu Jun 27 14:57:49 SGT 2013:ERROR:Exception in request: javax.net.ssl.SSLException: Unrecognized SSL message, plaintext connection?
    Thu Jun 27 14:57:49 SGT 2013:ERROR:An error occured [Unrecognized SSL message, plaintext connection?], see error log for details
    Thu Jun 27 14:57:49 SGT 2013:INFO:Error getting response for [TempSOAP.update:Request 1]; javax.net.ssl.SSLException: Unrecognized SSL message, plaintext connection?


    3. https://lt7:1111/mockTempSOAP
    Thu Jun 27 14:58:32 SGT 2013:INFO:Got response for [TempSOAP.update:Request 1] in 223ms (418 bytes)


    Question: Are numbers 1 and 3 correct? How about number 2?

    When trying to access the three URLs via browser:
    1. http://lt7:8088/mockTempSOAP
    - Displays the correct WSDL.

    2. https://lt7:8088/mockTempSOAP
    Secure Connection Failed
    An error occurred during a connection to lt7:8088.
    SSL received a record that exceeded the maximum permissible length.
    (Error code: ssl_error_rx_record_too_long)


    3. https://lt7:1111/mockTempSOAP
    This Connection is Untrusted
    lt7:1111 uses an invalid security certificate.
    The certificate is not trusted because it is self-signed.
    (Error code: sec_error_ca_cert_invalid)


    Question: Are these correct?

    Thank you in advance!