skip to content
Jonathan Dionne

Test SSL Connection (java)

/ 1 min read

You are using a Java application and would like to know if your app can communicate with a secured endpoint. Read below to learn how to do it easily.

Prerequisite

Download SSLPoke on the machine where your application is running. You can compile the tool yourself or head to the releases page and download the .jar file.

Commands

Execute the following command on the server. Make sure to point to the right truststore.

PlaceholderDescription
<path to truststore>The full path to the truststore to test against
<domain>the domain to test. eg.: jonathandionne.com
<keystore password>The password for the truststore.
Powershell command for PKCS12 TrustStore
java '-Djavax.net.ssl.trustStore="<path to truststore>"' '-Djavax.net.ssl.trustStorePassword=<keystore password>' '-Djavax.net.ssl.trustStoreType=pkcs12' -jar .\SSLPoke.jar <domain> 443