I am running the following java program in the Eclipse IDE:
import java.net.*;
import java.io.*;
public class HH
{
public static void main(String[] arg
Create a keystore containing the Fiddler certificate. Use this keystore as the truststore for the JVM along with the proxy settings.
Here's how to do that:
Tools -> Fiddler Options... -> HTTPS -> Export Root Certificate to Desktop
Open command line as administrator (keytool doesn't work otherwise)
\bin\keytool.exe -import -file C:\Users\ \Desktop\FiddlerRoot.cer -keystore FiddlerKeystore -alias Fiddler
Enter a password when prompted. This should create a file called FiddlerKeystore.
-DproxySet=true
-DproxyHost=127.0.0.1
-DproxyPort=8888
-Djavax.net.ssl.trustStore=
-Djavax.net.ssl.trustStorePassword=
Use these vmargs in your eclipse run configuration and you should be good to go.
I'm able to capture HTTPS requests made from the JVM without any issues with this setup.