尝试从Spring Boot应用程序调用Web服务时找不到有效的证书

我编写了一个简单的spring-boot应用程序,该应用程序发出POST请求,并将响应打印到屏幕上。

我运行该应用程序,并且有两个测试端点可以按预期工作,但是当我点击主端点以返回JSON时,我会收到此错误

sun.security.validator.ValidatorException: PKIX path building failed: 
sun.security.provider.certpath.SunCertPathBuilderException: unable to find 
valid certification path to requested target; nested exception is 
javax.net.ssl.SSLHandshakeException: 
sun.security.validator.ValidatorException: PKIX path building failed: 
sun.security.provider.certpath.SunCertPathBuilderException: unable to find
 valid certification path to requested target

该应用程序通过spring-boot-starter-web在本地机器上的tomcat服务器上运行,不确定我是否需要在终端安装任何证书

ww19983ww 回答:尝试从Spring Boot应用程序调用Web服务时找不到有效的证书

暂时没有好的解决方案,如果你有好的解决方案,请发邮件至:iooj@foxmail.com
本文链接:https://www.f2er.com/3157469.html

大家都在问