I am using fiddler running on the default port (8866) I have trusted the fake certificate and am capturing requests.
I have set the necessary proxy parameters in my spring boot application.
System.setProperty("http.proxyHost", "localhost");
System.setProperty("https.proxyHost", "localhost");
System.setProperty("http.proxyPort", "8866");
System.setProperty("https.proxyPort", "8866");
System.setProperty("java.net.useSystemProxies", "true");
When the request is made, I get the CONNECT
captured by fiddler, and then this exception in java.
PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
How do I bypass or turn off this validation temporarily to capture the request?