PKIXpath构build失败:看到sun.security.provider.certpath.SunCertPathBuilderException错误消息
这个问题之前已经被问过了,但是我还没有解决
我有一个托pipe在Ubuntu服务器上的Web应用程序,可以通过下面的URL访问它
http://myserver/ifx
Tomcat正在Docker容器中运行
我已经configurationMSA使用https://anotherserver/hr
为上述运行的应用程序。 当http://myserver/ifx
尝试访问https://anotherserver/hr
,出现以下错误:
2/Dec/2017:18:16:41.273 +0900 ERROR cwchcbifwiAbsInputEngineRestApiClient [COMPANY] WebAPI Error [GET] com.worksap.company.hue.breaker.exception.CircuitFailureException: org.springframework.web.client.ResourceAccessException: I/O error on GET request for "https://anotherserver/hr":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
我通过在浏览器(IE)上访问https://anotherserver/hr
来下载证书,然后通过logindocker然后尝试安装到myserver
,然后使用java中的keytool
安装证书。
不过,我仍然得到同样的错误。 有人能帮我理解这个问题吗?
PS:1.我已经确认https://anotherserver/hr
使用邮递员等rest客户端来返回有效的json数据。 2.我尝试用https
replacehttp
,但仍然无效。