Service Virtualization

  • 1.  SSLException when recording as a proxy

    Posted Apr 16, 2018 08:28 AM

    Hello,

     

    I have the following error when recording as a proxy, with the workstation : 

    2018-04-16 11:03:07,555Z (13:03) [Filter thread for lbf.net:443->127.0.0.1:50357] ERROR System.err - javax.net.ssl.SSLException: Unrecognized SSL message, plaintext connection?

    [...]
    2018-04-16 11:03:07,557Z (13:03) [Filter thread for 127.0.0.1:50357->lbf.net:443] ERROR System.err - javax.net.ssl.SSLException: Unrecognized SSL message, plaintext connection?

    [...]

     

    In the workstation.vmoptions file, I've added the parameter "-Djavax.net.debug=all" in order to have log available.

    But there are too much log. So I don't know what to search and what can I'm doing wrong to get these errors.

     

    Thanks for the help.

     

    Benoit



  • 2.  Re: SSLException when recording as a proxy

    Posted Apr 20, 2018 06:24 PM

    Hello Benoit,

     

    It can be that something is sending HTTPS requests to an HTTP server.

    For the debug information, you can add -Djavax.net.debug=ssl, to collect only SSL debug information.

     

     

    Thank you,

    Heloisa



  • 3.  Re: SSLException when recording as a proxy
    Best Answer

    Posted Apr 23, 2018 02:30 AM

    Hello Heloisa,

     

    I had to add "-Dhttps.protocols=TLSv1.2,TLSv1.1,TLSv1" to workstation.vmoptions file.

    Now it's working.

     

    Best regards.

     

    Benoit



  • 4.  Re: SSLException when recording as a proxy

    Posted Apr 23, 2018 06:11 AM

    If you use Test runner to run LISA test cases then you will have to add "-Dhttps.protocols=TLSv1.2,TLSv1.1,TLSv1" in TestRunner.vmoptions file as well.