Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
2.13.2
-
None
-
Unknown
Description
Currently NettyServerBootstrapConfiguration doesn't provide default values of keyStoreFormat and securityProvider options. This is not in sync with description of these options in Netty doc (1).
For example the following configuration:
<bean id="httpsConfiguration" class="org.apache.camel.component.netty.http.NettySharedHttpServerBootstrapConfiguration"> <property name="port" value="10020"/> <property name="host" value="0.0.0.0"/> <property name="keyStoreResource" value="jsse/localhost.ks"/> <property name="trustStoreResource" value="jsse/localhost.ks"/> <property name="passphrase" value="changeit"/> </bean>
...won't work until I add keyStoreFormat and securityProvider explicitly to it:
<property name="keyStoreFormat" value="JKS"/> <property name="securityProvider" value="SunX509"/>
Solution:
We should add keyStoreFormat=JKS and securityProvider=SunX509 defaults to the NettyServerBootstrapConfiguration.