We are getting handshake failure when we make the API calls using ReadyAPI
Wed Jun 28 10:10:20 CDT 2017:ERROR:Exception in request: javax.net.ssl.SSLHandsh akeException: Received fatal alert: handshake_failure Wed Jun 28 10:10:20 CDT 2017:ERROR:An error occurred [Received fatal alert: handshake_failure], see error log for details Wed Jun 28 10:10:20 CDT 2017:INFO:Error getting response for [https://test-us-api.experian.com.Vinspecifications:Request 1]; javax.net.ssl.SSLHandshakeException: Received fatal alert: handshake_failure
The Error log had the following stacktrace:
Wed Jun 28 10:10:20 CDT 2017:ERROR:javax.net.ssl.SSLHandshakeException: Received fatal alert: handshake_failure 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) ...<snipped>
We are using Java 8 still we get the same error. However, if we make the API calls using Postman Client, we get successful response (200) from the API.
Can you please help on why we are getting the handshake failure only when we run using Ready API ?
Solved! Go to Solution.
tcpdump -i any -s 0 host <IP address of the host having ReadyAPI > -w <filename-to-capture-networkpackets>
Content Type: Alert (21) Version: TLSv1.2 (0x303) Length: 2 Alert Message Level: Fatal (2) Description: Handshake Failure (40)
TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384