Intercept HTTPS Traffic from JAVA applications
Learn how to intercept HTTPS traffic from JAVA applications
Java applications have their own root certificate store, usually located JDK's jdk\jre\lib\security\cacerts file.
In order to see SSL connections from JAVA applications you need to Install the trusted HTTP Debugger CA root certificate to the JAVA cacerts store of your application.
The HTTP Debugger CA certificate is located in: C:\ProgramData\HTTPDebuggerPro\Cert\SSL folder.
Navigate to the jdk\jre\lib\security folder of your application, execute the bellow command from the command prompt and restart your JAVA application:
keytool -keystore cacerts -trustcacerts -importcert -alias httpdebugger2 -storepass changeit -file "C:\ProgramData\HTTPDebuggerPro\Cert\SSL\HTTP DEBUGGER CA for DEBUG ONLY 2.cer"Parameters definition:
- keytool - is part of JRE and can be found in bin folder of JRE
- httpdebugger2 - specifies an alias for the certificate.
- changeit - the default password for JAVA cacerts store.
Now you may see the HTTPS/SSL traffic from your JAVA applications.