0

I have setup fiddler to decrypt HTTPS traffic in the usual way.

enter image description here

My java application successfully calls the web service without fiddler.
Once I set the proxy, and make calls, I get the following exception.

I have set the proxy in my spring boot application as follows:

System.setProperty("http.proxyHost", "127.0.0.1");
System.setProperty("https.proxyHost", "127.0.0.1");
System.setProperty("http.proxyPort", "8888");
System.setProperty("https.proxyPort", "8888");

sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target

Jim
  • 14,952
  • 15
  • 80
  • 167

1 Answers1

0

You need to provide fiddler`s certificate to your jvm keystore. here its explained how to Capture https with fiddler, in java

ozkanpakdil
  • 3,199
  • 31
  • 48