Configuring Java application alongside Fiddler Everywhere

Environment

Product
Product Version 1.0.0 and above
3rd-party tool Java Virtual Machine, Java applications

Description

The Java Virtual Machine has its own proxy configuration settings. This article guides how to export the Fiddler trust certificate (for HTTPS) and the steps needed to set up the JVM to respect the Fiddler proxy.

Solution

%JAVA_HOME%\bin\keytool.exe -import -file <path-to-exported-certificate>\FiddlerRootCertificate.crt -keystore <your-export-path>\FiddlerKeystoreFile -alias Fiddler
  • Configure the java application to use the Fiddler proxy and certificate through jre
jre -DproxySet=true -DproxyHost=127.0.0.1 -DproxyPort=8866 -Djavax.net.ssl.trustStore=<your-export-path>\FiddlerKeystoreFile -Djavax.net.ssl.trustStorePassword=<Keystore Password>
In this article