javax.net.ssl.SSLHandshakeException: Remote host terminated the handshake

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via JDK Bug System by Felix Yang, 1 year ago
Remote host terminated the handshake
via JDK Bug System by Felix Yang, 1 year ago
via Stack Overflow by Jhon Charles
, 1 year ago
Remote host closed connection during handshake
via Stack Overflow by Prasad Reddy
, 10 months ago
Remote host closed connection during handshake
via GitHub by dashawn888
, 1 year ago
Remote host closed connection during handshake
java.io.EOFException: SSL peer shut down incorrectly
at sun.security.ssl.SSLSocketInputRecord.decode(SSLSocketInputRecord.java:156)
at sun.security.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:995)
at sun.security.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:949)
at sun.security.ssl.SSLSocketImpl.performInitialHandshake(SSLSocketImpl.java:1356)
at sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1383)
at sun.net.www.protocol.https.HttpsClient.afterConnect(HttpsClient.java:559)
at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(AbstractDelegateHttpsURLConnection.java:185)
at sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1508)
at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1436)
at undefined.ServerIdentityTest.doClientSide(ServerIdentityTest.java:129)
at undefined.ServerIdentityTest.startClient(ServerIdentityTest.java:272)
at undefined.ServerIdentityTest.(ServerIdentityTest.java:202)
at undefined.ServerIdentityTest.main(ServerIdentityTest.java:179)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:504)
at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:92)
at java.lang.Thread.run(Thread.java:746)

Users with the same issue

You are the first who have seen this exception.

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.