Skip to content
Advertisement

How do I solve javax.net.ssl.SSLHandshakeException on Heroku?

I faced SSLHandshakeException on Heroku.

This app was not SSL app. But this app called a ssl-based web api from inside of the app. Usually, using keytool to adopt SSL cert to JVM solves this kind of problem.

But how do I this on Heroku?

logs here:

JavaScript

Advertisement

Answer

When you are making a SSL connection to a server, you should be having the Server's certificate in the client truststore.

You should import the server certificate into a keystore and specify the keystore using javax.net.ssl.trustStore and javax.net.ssl.trustStorePassword.

Check if you have specified these properties. If already specified check if they point to keystore properly.

User contributions licensed under: CC BY-SA
9 People found this is helpful
Advertisement