Fork me on GitHub
#jvm
<
2019-06-18
>
drewverlee05:06:57

so this error javax.net.ssl.SSLHandshakeException: Received fatal alert: handshake_failure is because the JVM and the server aren't encrypting the same way?

[{:type javax.net.ssl.SSLHandshakeException
   :message Received fatal alert: handshake_failure
   :at [sun.security.ssl.Alert createSSLException Alert.java 131]}]
 :trace
 [[sun.security.ssl.Alert createSSLException Alert.java 131]
  [sun.security.ssl.Alert createSSLException Alert.java 117]
  [sun.security.ssl.TransportContext fatal TransportContext.java 308]
  [sun.security.ssl.Alert$AlertConsumer consume Alert.java 285]
  [sun.security.ssl.TransportContext dispatch TransportContext.java 181]
  [sun.security.ssl.SSLTransport decode SSLTransport.java 164]
  [sun.security.ssl.SSLEngineImpl decode SSLEngineImpl.java 672]
  [sun.security.ssl.SSLEngineImpl readRecord SSLEngineImpl.java 627]
  [sun.security.ssl.SSLEngineImpl unwrap SSLEngineImpl.java 443]
  [sun.security.ssl.SSLEngineImpl unwrap SSLEngineImpl.java 422]
  [javax.net.ssl.SSLEngine unwrap SSLEngine.java 634]
  [org.httpkit.client.HttpsRequest doHandshake HttpsRequest.java 98]
  [org.httpkit.client.HttpClient doRead HttpClient.java 188]
  [org.httpkit.client.HttpClient run HttpClient.java 488]
  [java.lang.Thread run Thread.java 834]]}}
Server reads: The connection to this site is encrypted and authenticated using TLS 1.2, ECDHE_RSA with P-256, and AES_128_GCM. I'm not sure how to figure out what the JVM is doing.

drewverlee17:06:15

well i just changed libs and the error disappeared.