SSL enabled camel jaxrs route does not work in JBoss Fuse 6.1
Issue
I have a camel jaxrs route:
<camelContext id="myJaxrsContext" xmlns="http://camel.apache.org/schema/blueprint">
<route id="my-jaxrs-route">
<from uri="cxfrs://bean://rsServer"/>
<process ref="MyJaxRsProcessor"/>
<to uri="cxfrs://bean://rsClient"/>
</route>
</camelContext>
both camel jaxrs consumer and producer endpoints have SSL enabled in the blueprint configuration through <httpj:engine-factory> and <http:conduit>:
<cxf:rsServer id="rsServer"
address="https://${server.host}:${server.port}/"
serviceClass="xx.xx.xx.xx.MyService"
loggingFeatureEnabled="true">
<cxf:inInterceptors>
<bean class="xx.xx.xx.xx.MySecurityInterceptor"/>
</cxf:inInterceptors>
</cxf:rsServer>
<cxf:rsClient id="rsClient"
address="https://${client.host}:${client.port}/"
serviceClass="xx.xx.xx.xx.MyService"
loggingFeatureEnabled="true"/>
Unfortunately, it does not work in JBoss Fuse 6.1 GA as it failed to find valid certification path with following error:
sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
Environment
- JBoss Fuse
- 6.1
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
