Service Virtualization

Expand all | Collapse all

Message:     javax.net.ssl.SSLHandshakeException: Received fatal alert: handshake_failure

  • 1.  Message:     javax.net.ssl.SSLHandshakeException: Received fatal alert: handshake_failure

    Posted Apr 03, 2017 02:10 PM

    I'm trying to call internal SSL enabled service URL from DevTest 8.0.2 REST step but getting below issue.

    Can someone guide me with the steps to fix this issue?

     

    | HTTP

    ============================================================================

    | Message: javax.net.ssl.SSLHandshakeException: Received fatal alert: handshake_failure

    ----------------------------------------------------------------------------

    | Trapped Exception: Received fatal alert: handshake_failure

    | Trapped Message: javax.net.ssl.SSLHandshakeException: Received fatal alert: handshake_failure

    ----------------------------------------------------------------------------

    STACK TRACE

    javax.net.ssl.SSLHandshakeException: Received fatal alert: handshake_failure

    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:1015)

    at com.itko.lisa.test.CommTrans.send(CommTrans.java:811)

    at com.itko.lisa.test.CommTrans.sendGET(CommTrans.java:764)

    at com.itko.lisa.ws.rest.RESTNode.doSend(RESTNode.java:209)

    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:897)

    at com.itko.util.swing.panels.ProcessingDialog$2.run(ProcessingDialog.java:194)

    at java.lang.Thread.run(Unknown Source) ============================================================================



  • 2.  Re: Message:     javax.net.ssl.SSLHandshakeException: Received fatal alert: handshake_failure
    Best Answer

    Posted Apr 03, 2017 03:08 PM

    Is this one-way or two-way SSL?

    See if these resources help you. Let us know.

    wooda20 created a nice description discussion here: Of SSL, Java and DevTest   see if this helps.

    abrsh01 explored SSL and TLS here: https://communities.ca.com/message/241877391?commentID=241877391#comment-241877391 

    Some docops info located here.: SSL Assets - DevTest Solutions - 10.0 - CA Technologies Documentation 

    And, Oracle provides some information here: Debugging SSL/TLS connections  



  • 3.  Re: Message:     javax.net.ssl.SSLHandshakeException: Received fatal alert: handshake_failure

    Posted Apr 06, 2017 08:48 AM

    Mona,

    Did Joel's recommendations help you out?