下面是我的配置:
<sslContextParameters id="sslContext" xmlns="http://camel.apache.org/schema/blueprint">
<trustManagers>
<keyStore resource="cer.jks" password="password"/>
</trustManagers>
</sslContextParameters>
<bean id="https4" class="org.apache.camel.component.http4.HttpComponent">
<property name="sslContextParameters" ref="sslContext"/>
</bean>
<route>
...
<to uri="https4://url"/>
..
</route>
cer.jks既存在于已部署的osgi捆绑包中,也存在于jboss保险丝独立服务器的/etc/cer.jks中,但我仍然不断获取
PKIX路径构建失败:sun.security.provider.certpath.SunCertPathBuilderException:无法找到到请求目标的有效认证路径