将提琴手与java soap应用程序调用结合使用会引发SunCertPathBuilderException

问题描述 投票:0回答:1

我已设置提琴手以通常方式解密HTTPS流量。

enter image description here

我的Java应用程序在没有提琴手的情况下成功调用了Web服务。设置代理并拨打电话后,出现以下异常。

我已经在我的spring boot应用程序中设置了代理,如下所示:

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:无法找到到请求目标的有效证书路径

java soap fiddler
1个回答
0
投票

您需要向jvm密钥库提供fiddler的证书。此处说明了how to Capture https with fiddler, in java

© www.soinside.com 2019 - 2024. All rights reserved.