SSL Handshake failure with Java version "1.7.0_79"
<p>I am communicating with one of the host in Java using Apache HttpClient and it is throwing <code>handshake_failure</code>. The full trace is </p>

<blockquote>
  <p>trigger seeding of SecureRandom done seeding SecureRandom Ignoring
  unavailable cipher suite: TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA Ignoring
  unavailable cipher suite: TLS_DHE_RSA_WITH_AES_256_CBC_SHA Ignoring
  unavailable cipher suite: TLS_ECDH_RSA_WITH_AES_256_CBC_SHA Ignoring
  unsupported cipher suite: TLS_DHE_DSS_WITH_AES_128_CBC_SHA256 Ignoring
  unsupported cipher suite: TLS_DHE_DSS_WITH_AES_256_CBC_SHA256 Ignoring
  unsupported cipher suite: TLS_DHE_RSA_WITH_AES_128_CBC_SHA256 Ignoring
  unsupported cipher suite: TLS_ECDH_RSA_WITH_AES_128_CBC_SHA256
  Ignoring unsupported cipher suite: TLS_DHE_RSA_WITH_AES_256_CBC_SHA256
  Ignoring unsupported cipher suite:
  TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384 Ignoring unsupported cipher
  suite: TLS_ECDH_ECDSA_WITH_AES_256_CBC_SHA384 Ignoring unsupported
  cipher suite: TLS_RSA_WITH_AES_256_CBC_SHA256 Ignoring unavailable
  cipher suite: TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA Ignoring
  unsupported cipher suite: TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256
  Ignoring unsupported cipher suite:
  TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA384 Ignoring unavailable cipher
  suite: TLS_DHE_DSS_WITH_AES_256_CBC_SHA Ignoring unsupported cipher
  suite: TLS_ECDH_RSA_WITH_AES_256_CBC_SHA384 Ignoring unsupported
  cipher suite: TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA256 Ignoring
  unsupported cipher suite: TLS_ECDH_ECDSA_WITH_AES_128_CBC_SHA256
  Ignoring unavailable cipher suite: TLS_ECDH_ECDSA_WITH_AES_256_CBC_SHA
  Ignoring unavailable cipher suite: TLS_RSA_WITH_AES_256_CBC_SHA
  Ignoring unsupported cipher suite: TLS_RSA_WITH_AES_128_CBC_SHA256
  Allow unsafe renegotiation: false Allow legacy hello messages: true Is
  initial handshake: true Is secure renegotiation: false %% No cached
  client session
  <strong>* ClientHello, TLSv1 RandomCookie:  GMT: 1477593324 bytes = { 140, 171, 214, 217, 33, 165, 60, 228, 102, 207, 88, 112, 29, 40, 198, 242,
  159, 61, 172, 89, 116, 98, 7, 195, 182, 144, 159, 226 } Session ID: 
  {} Cipher Suites: [TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA,
  TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA, TLS_RSA_WITH_AES_128_CBC_SHA,
  TLS_ECDH_ECDSA_WITH_AES_128_CBC_SHA,
  TLS_ECDH_RSA_WITH_AES_128_CBC_SHA, TLS_DHE_RSA_WITH_AES_128_CBC_SHA,
  TLS_DHE_DSS_WITH_AES_128_CBC_SHA,
  TLS_ECDHE_ECDSA_WITH_3DES_EDE_CBC_SHA,
  TLS_ECDHE_RSA_WITH_3DES_EDE_CBC_SHA, SSL_RSA_WITH_3DES_EDE_CBC_SHA,
  TLS_ECDH_ECDSA_WITH_3DES_EDE_CBC_SHA,
  TLS_ECDH_RSA_WITH_3DES_EDE_CBC_SHA, SSL_DHE_RSA_WITH_3DES_EDE_CBC_SHA,
  SSL_DHE_DSS_WITH_3DES_EDE_CBC_SHA, TLS_ECDHE_ECDSA_WITH_RC4_128_SHA,
  TLS_ECDHE_RSA_WITH_RC4_128_SHA, SSL_RSA_WITH_RC4_128_SHA,
  TLS_ECDH_ECDSA_WITH_RC4_128_SHA, TLS_ECDH_RSA_WITH_RC4_128_SHA,
  SSL_RSA_WITH_RC4_128_MD5, TLS_EMPTY_RENEGOTIATION_INFO_SCSV]
  Compression Methods:  { 0 } Extension elliptic_curves, curve names:
  {secp256r1, sect163k1, sect163r2, secp192r1, secp224r1, sect233k1,
  sect233r1, sect283k1, sect283r1, secp384r1, sect409k1, sect409r1,
  secp521r1, sect571k1, sect571r1, secp160k1, secp160r1, secp160r2,
  sect163r1, secp192k1, sect193r1, sect193r2, secp224k1, sect239k1,
  secp256k1} Extension ec_point_formats, formats: [uncompressed]
  Extension server_name, server_name: [host_name:
  integration.swiggy.com]
  <em></strong> [write] MD5 and SHA1 hashes:  len = 180 0000: 01 00 00 B0 03 01 58 12   49 EC 8C AB D6 D9 21 A5  ......X.I.....!. 0010: 3C E4 66 CF 58 70
  1D 28   C6 F2 9F 3D AC 59 74 62  &lt;.f.Xp.(...=.Ytb 0020: 07 C3 B6 90 9F
  E2 00 00   2A C0 09 C0 13 00 2F C0  ........</em>...../. 0030: 04 C0 0E 00
  33 00 32 C0   08 C0 12 00 0A C0 03 C0  ....3.2......... 0040: 0D 00 16
  00 13 C0 07 C0   11 00 05 C0 02 C0 0C 00  ................ 0050: 04 00
  FF 01 00 00 5D 00   0A 00 34 00 32 00 17 00  ......]...4.2... 0060: 01
  00 03 00 13 00 15 00   06 00 07 00 09 00 0A 00  ................ 0070:
  18 00 0B 00 0C 00 19 00   0D 00 0E 00 0F 00 10 00  ................
  0080: 11 00 02 00 12 00 04 00   05 00 14 00 08 00 16 00 
  ................ 0090: 0B 00 02 01 00 00 00 00   1B 00 19 00 00 16 69
  6E  ..............in 00A0: 74 65 67 72 61 74 69 6F   6E 2E 73 77 69 67
  67 79  tegration.swiggy 00B0: 2E 63 6F 6D<br>
  .com main, WRITE: TLSv1 Handshake, length = 180 [Raw write]: length =
  185 0000: 16 03 01 00 B4 01 00 00   B0 03 01 58 12 49 EC 8C 
  ...........X.I.. 0010: AB D6 D9 21 A5 3C E4 66   CF 58 70 1D 28 C6 F2
  9F  ...!.&lt;.f.Xp.(... 0020: 3D AC 59 74 62 07 C3 B6   90 9F E2 00 00 2A
  C0 09  =.Ytb........*.. 0030: C0 13 00 2F C0 04 C0 0E   00 33 00 32 C0
  08 C0 12  .../.....3.2.... 0040: 00 0A C0 03 C0 0D 00 16   00 13 C0 07
  C0 11 00 05  ................ 0050: C0 02 C0 0C 00 04 00 FF   01 00 00
  5D 00 0A 00 34  ...........]...4 0060: 00 32 00 17 00 01 00 03   00 13
  00 15 00 06 00 07  .2.............. 0070: 00 09 00 0A 00 18 00 0B   00
  0C 00 19 00 0D 00 0E  ................ 0080: 00 0F 00 10 00 11 00 02<br>
  00 12 00 04 00 05 00 14  ................ 0090: 00 08 00 16 00 0B 00
  02   01 00 00 00 00 1B 00 19  ................ 00A0: 00 00 16 69 6E 74
  65 67   72 61 74 69 6F 6E 2E 73  ...integration.s 00B0: 77 69 67 67 79
  2E 63 6F   6D                       wiggy.com Exception in thread
  "main" javax.net.ssl.SSLHandshakeException: Received fatal alert:
  handshake_failure     at
  sun.security.ssl.Alerts.getSSLException(Alerts.java:192)  at
  sun.security.ssl.Alerts.getSSLException(Alerts.java:154)  at
  sun.security.ssl.SSLSocketImpl.recvAlert(SSLSocketImpl.java:1979)     at
  sun.security.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:1086)    at
  sun.security.ssl.SSLSocketImpl.performInitialHandshake(SSLSocketImpl.java:1332)
    at
  sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1359)
    at
  sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1343)
    at
  org.apache.http.conn.ssl.SSLConnectionSocketFactory.createLayeredSocket(SSLConnectionSocketFactory.java:394)
    at
  org.apache.http.conn.ssl.SSLConnectionSocketFactory.connectSocket(SSLConnectionSocketFactory.java:353)
    at
  org.apache.http.impl.conn.DefaultHttpClientConnectionOperator.connect(DefaultHttpClientConnectionOperator.java:141)
    at
  org.apache.http.impl.conn.PoolingHttpClientConnectionManager.connect(PoolingHttpClientConnectionManager.java:353)
    at
  org.apache.http.impl.execchain.MainClientExec.establishRoute(MainClientExec.java:380)
    at
  org.apache.http.impl.execchain.MainClientExec.execute(MainClientExec.java:236)
    at
  org.apache.http.impl.execchain.ProtocolExec.execute(ProtocolExec.java:184)
    at
  org.apache.http.impl.execchain.RetryExec.execute(RetryExec.java:88)
    at
  org.apache.http.impl.execchain.RedirectExec.execute(RedirectExec.java:110)
    at
  org.apache.http.impl.client.InternalHttpClient.doExecute(InternalHttpClient.java:184)
    at
  org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:82)
    at
  org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:107)
    at
  HttpURLConnectionExample.sendGet1(HttpURLConnectionExample.java:83)
    at HttpURLConnectionExample.main(HttpURLConnectionExample.java:48)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)  at
  sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
    at
  sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:606)     at
  com.intellij.rt.execution.application.AppMain.main(AppMain.java:144)
  [Raw read]: length = 5 0000: 15 03 01 00 02<br>
  ..... [Raw read]: length = 2 0000: 02 28<br>
  .( main, READ: TLSv1 Alert, length = 2 main, RECV TLSv1 ALERT:  fatal,
  handshake_failure main, called closeSocket() main, handling exception:
  javax.net.ssl.SSLHandshakeException: Received fatal alert:
  handshake_failure</p>
</blockquote>

<p>I have tried many things, but cannot figure out what exactly is the issue.</p>