Using OSGi Configuration Properties on Camel Spring DSL sslContextParameters
Issue
Camel Spring DSL sslContextParameters does not seem to work with properties defined in OSGi configuration properties.
we have some properties defined as follow:
<osgix:cm-properties id="preProps" persistent-id="org.fusesource.example">
<prop key="prefix">myPassword</prop>
</osgix:cm-properties>
Then in Spring DSL we have a sslContextParameters, which we bind to an jetty endpoint.
<camel:sslContextParameters id="sslContextParameters">
<camel:keyManagers keyPassword="${prefix}">
<camel:keyStore resource="location/keystore" password="${prefix}" ></camel:keyStore>
</camel:keyManagers>
</camel:sslContextParameters>
The property is defined in OSGi configuration but when using it as a property placeholder in <camel:sslContextParameters> element, it's causing the following exception:
java.security.UnrecoverableKeyException: Password verification failed
However, when we hardcode the password in the <camel:sslContextParameters> element, it works like charm, but it's not what we are trying to archive.
Environment
- Fuse ESB Enterprise 7.1;
- Red Hat JBoss Fuse 6.x;
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.