Details
-
Bug
-
Status: Resolved
-
Minor
-
Resolution: Fixed
-
3.14.2, 3.16.0
-
None
Description
Setting the camel.component.netty.ssl-context-parameters (camel-netty-starter) does not work.
The application starts but then when I produce a message (NettyProducer), it fails because from what I can see in the logs the Channel has not been configured with SSL (SSLEngine not configured, Client SSL handler not configured).
If I use the query parameter instead: `&ssl=true&sslContextParameters=#sslContextParameters` it works just fine.
For reference, this is how I set the springboot properties:
camel.component.netty.ssl=true
camel.component.netty.ssl-context-parameters=#sslContextParameters
This is an example of how the Spring bean looks like:
@Bean(name = "sslContextParameters") public SSLContextParameters getSSLContextParameters() { // code omitted to keep it short SSLContextParameters scp = new SSLContextParameters(); scp.setSecureSocketProtocol("TLSv1.2"); scp.setSecureSocketProtocols(sspp); scp.setServerParameters(scsp); scp.setClientParameters(sccp); scp.setKeyManagers(kmp); scp.setTrustManagers(tmp); return scp;