camel HTTP4 JBoss:无法找到请求目标的有效证书路径

camel HTTP4 JBoss : unable to find valid certification path to requested target

我从 UAA 服务请求访问令牌。收到令牌。然后使用令牌将文件上传到 AWS 环境。现在它适用于一种环境,不适用于另一种环境。可以发现的唯一主要区别是,有效的使用 SSO 身份验证,而无效的使用 UAA 身份验证。因为我从 UAA server/service 请求令牌并将其用于 POST 数据文件到我没有使用密钥存储的环境。我收到以下错误。

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

Caused by: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target

Caused by: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target

我正在使用 JBoss Fuse JBoss Fuse (6.3.0.redhat-310) 容器 运行 我的应用程序包

Java 8 Camel-HTTP4 到 post

任何建议或帮助将不胜感激,有什么我遗漏的吗?有什么特别需要做的吗?谢谢!

哦,是的,当我在 Postman 中执行时它有效吗?不保险丝? 它也适用于 Curl。

HTTP/1.1 200 Connection Established
Proxy-Agent: Zscaler/6.0

HTTP/1.1 100 Continue
Server: Zscaler/6.0

HTTP/1.1 201 Created
Cache-Control: no-cache, no-store, max-age=0, must-revalidate
Content-Length: 0
Corr: ef75916afaf1db34
Date: Tue, 05 Jun 2018 22:58:27 GMT
Expires: 0
Pragma: no-cache
Server: none
X-Application-Context: APMTS:cloud:10
X-Content-Type-Options: nosniff
X-Frame-Options: DENY
X-Vcap-Request-Id: 1b964238-0dbc-4c09-7c6f-0bc429698584
X-Xss-Protection: 1; mode=block


 

发现我的问题出在证书上。我找到了这些系统的证书,导入到 java 密钥库。问题消失了。

谢谢大家