将 fiddler 与 java soap 应用程序调用一起使用会抛出 SunCertPathBuilderException

using fiddler with a java soap application call throws SunCertPathBuilderException

我已经设置了 fiddler 以通常的方式解密 HTTPS 流量。

我的 java 应用程序在没有 fiddler 的情况下成功调用了 Web 服务。
设置代理并进行调用后,出现以下异常。

我在 spring 启动应用程序中设置代理如下:

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

您需要为您的 jvm 密钥库提供 fiddler 的证书。这里有解释