Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-17992

camel-netty-starter - camel.component.netty.ssl-context-parameters does not work

    XMLWordPrintableJSON

Details

    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;

      Attachments

        Activity

          People

            klease78 Karen Lease
            vincenzo.galluccio Vincenzo Galluccio
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: