Intercept HTTPS Traffic from JAVA applications

Learn how to intercept SSL traffic from JAVA applications

In order to decode SSL connections from JAVA applications you need to Install HTTP Debugger CA root certificate to the JAVA cacerts store (cacerts store is where JAVA stores public certificates of root CAs).

JAVA cacerts store is usually located in the jre\lib\security\cacerts file in your JDK installation.

The HTTP Debugger CA certificate is located in C:\ProgramData\HTTPDebuggerPro\Cert\SSL folder.

Go to the jre\lib\security security folder of your JDK installation (JAVA_HOME ---> JRE --> lib ---> security) and run the following command from the command line.

keytool.exe -keystore cacerts -trustcacerts -importcert -alias httpdebugger -storepass changeit -file "C:\ProgramData\HTTPDebuggerPro\Cert\SSL\HTTP DEBUGGER CA for DEBUG ONLY 2.cer"

Parameters definition:
  • keytool.exe - is part of JRE and can be found in bin folder of JRE
  • httpdebugger - specifies an alias for the certificate.
  • changeit - the default password for JAVA cacerts store.

Restart your JAVA application. You will now see HTTPS / SSL traffic from your JAVA application.

Download FREE 7-Day Trial