Vincenzo Galluccio created CAMEL-17992:
------------------------------------------
Summary: camel-netty-starter -
camel.component.netty.ssl-context-parameters does not work
Key: CAMEL-17992
URL: https://issues.apache.org/jira/browse/CAMEL-17992
Project: Camel
Issue Type: Bug
Components: camel-netty, camel-spring-boot-starters
Affects Versions: 3.16.0, 3.14.2
Reporter: Vincenzo Galluccio
Fix For: 3.16.0
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;
```
--
This message was sent by Atlassian Jira
(v8.20.7#820007)