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

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

Samebug tips

,
via Stack Overflow by Strelok

Import the server certificate into your truststore.

Solutions on the web

via openas2 by mpilon
, 1 year ago
Received fatal alert: bad_certificate
via Stack Overflow by Krishanthy Mohanachandran
, 1 year ago
Received fatal alert: handshake_failure
via Stack Overflow by arcy
, 1 year ago
Received fatal alert: handshake_failure
via Stack Overflow by user3676578
, 10 months ago
via synametrics.com by Unknown author, 1 year ago
Received fatal alert: handshake_failure
javax.net.ssl.SSLHandshakeException: Received fatal alert: bad_certificate
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.net.www.protocol.https.HttpsClient.afterConnect(Unknown Source)
at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(Unknown Source)
at sun.net.www.protocol.http.HttpURLConnection.getOutputStream(Unknown Source)
at org.openas2.processor.sender.AS2SenderModule.sendMessage(Unknown Source)
at org.openas2.processor.sender.AS2SenderModule.handle(Unknown Source)
at org.openas2.processor.DefaultProcessor.handle(Unknown Source)
at org.openas2.processor.receiver.DirectoryPollingModule.processFile(Unknown Source)
at org.openas2.processor.receiver.DirectoryPollingModule.updateTracking(Unknown Source)
at org.openas2.processor.receiver.DirectoryPollingModule.poll(Unknown Source)
at org.openas2.processor.receiver.PollingModule$PollTask.run(Unknown Source)
at java.util.TimerThread.mainLoop(Unknown Source)
at java.util.TimerThread.run(Unknown Source)

Users with the same issue

10 times, 2 months ago
2 times, 3 months ago
6 times, 1 year ago
540 times, 1 year ago
10 times, 1 year ago

Write tip

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