Service Virtualization

Expand all | Collapse all

"javax.net.ssl.SSLException: Received fatal alert: protocol_version" when executing a step that tries to run on a secure environment

Jump to Best Answer
  • 1.  "javax.net.ssl.SSLException: Received fatal alert: protocol_version" when executing a step that tries to run on a secure environment

    Posted 05-15-2017 05:36 PM

    Hello.  I'm currently receiving "javax.net.ssl.SSLException: Received fatal alert: protocol_version" when executing a REST step that tries to run on a secure environment.  

     

    It is a REST step, POST, and I have already entered an "Authorization" header with a working username/password.  The request executes with no problems with the same Authorization header when using Postman (I run both LISA and Postman on the same machine).

     

    Has anyone run into a similar problem?

     

    Thanks.

     

     

    Message: javax.net.ssl.SSLException: Received fatal alert: protocol_version ---------------------------------------------------------------------------- | Trapped Exception: Received fatal alert: protocol_version | Trapped Message: javax.net.ssl.SSLException: Received fatal alert: protocol_version ---------------------------------------------------------------------------- STACK TRACE javax.net.ssl.SSLException: Received fatal alert: protocol_version at sun.security.ssl.Alerts.getSSLException(Unknown Source) at sun.security.ssl.Alerts.getSSLException(Unknown Source) at sun.security.ssl.SSLSocketImpl.recvAlert(Unknown Source) at sun.security.ssl.SSLSocketImpl.readRecord(Unknown Source) at sun.security.ssl.SSLSocketImpl.performInitialHandshake(Unknown Source) at sun.security.ssl.SSLSocketImpl.startHandshake(Unknown Source) at sun.security.ssl.SSLSocketImpl.startHandshake(Unknown Source) at org.apache.http.conn.ssl.SSLSocketFactory.connectSocket(SSLSocketFactory.java:535) at org.apache.http.conn.ssl.SSLSocketFactory.connectSocket(SSLSocketFactory.java:403) at org.apache.http.impl.conn.DefaultClientConnectionOperator.openConnection(DefaultClientConnectionOperator.java:177) at org.apache.http.impl.conn.ManagedClientConnectionImpl.open(ManagedClientConnectionImpl.java:304) at org.apache.http.impl.client.DefaultRequestDirector.tryConnect(DefaultRequestDirector.java:611) at org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:446) at org.apache.http.impl.client.AbstractHttpClient.doExecute(AbstractHttpClient.java:863) at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:72) at com.itko.lisa.test.CommTrans.doSend(CommTrans.java:1026) at com.itko.lisa.test.CommTrans.send(CommTrans.java:815) at com.itko.lisa.test.CommTrans.sendPOST(CommTrans.java:793) at com.itko.lisa.ws.rest.RESTNode.doSend(RESTNode.java:214) at com.itko.lisa.ws.rest.RESTNode.doWebTrans(RESTNode.java:168) at com.itko.lisa.ws.rest.RESTNodeBase.execute(RESTNodeBase.java:362) at com.itko.lisa.ws.rest.RESTNodeEditor$4.doCallback(RESTNodeEditor.java:884) at com.itko.util.swing.panels.ProcessingDialog$2.run(ProcessingDialog.java:194) at java.lang.Thread.run(Unknown Source) ============================================================================



  • 2.  Re: "javax.net.ssl.SSLException: Received fatal alert: protocol_version" when executing a step that tries to run on a secure environment
    Best Answer

    Posted 05-16-2017 05:44 AM

    It looks as though the wrong version of TLS has been selected. Using a Web browser to reach the site you should be able to find out the version in use by looking at the security settings (the little padlock alongside the URL in Chrome, for instance).

     

    You can enable the HTTP/SSL debug in Workstation (under the help menu) to see what is being used.

     

    You could also try adding the following to your Workstation.vmoptions file, on a line of its own

     

    -Dhttps.protocols=TLSv1,TLSv1.1,TLSv1.2 

     

    and see if that resolves your problem. If so, you would need to put the same entry in your other vmoptions files, as appropriate. 

     

    If this does not work for you, perhaps you could post the debug information and let us know what version of DevTest you are using 



  • 3.  Re: "javax.net.ssl.SSLException: Received fatal alert: protocol_version" when executing a step that tries to run on a secure environment

    Posted 05-24-2017 11:24 AM

    Crisostomo,

     

    Did David's recommendations help you out with this issue?



  • 4.  Re: "javax.net.ssl.SSLException: Received fatal alert: protocol_version" when executing a step that tries to run on a secure environment

    Posted 12-12-2017 12:25 PM

    FYI - I had the exact same issue, and wooda20's fix worked for me.