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

NettyServerBootstrapConfiguration should provide default SSL settings

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.13.2
    • 2.14.0
    • camel-netty
    • 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.

      (1) http://camel.apache.org/netty.html

      Attachments

        Activity

          People

            hekonsek Henryk Konsek
            hekonsek Henryk Konsek
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: