Henryk Konsek created CAMEL-7763:
------------------------------------

             Summary: NettyServerBootstrapConfiguration should provide default 
SSL settings
                 Key: CAMEL-7763
                 URL: https://issues.apache.org/jira/browse/CAMEL-7763
             Project: Camel
          Issue Type: Bug
          Components: camel-netty
    Affects Versions: 2.13.2
            Reporter: Henryk Konsek
            Assignee: Henryk Konsek
             Fix For: 2.14.0


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:

{code}
<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>  
{code}

...won't work until I add {{keyStoreFormat}} and {{securityProvider}} 
explicitly to it:

{code}
  <property name="keyStoreFormat" value="JKS"/>
  <property name="securityProvider" value="SunX509"/>
{code}

Solution:

We should add {{keyStoreFormat=JKS}} and {{securityProvider=SunX509}} defaults 
to the {{NettyServerBootstrapConfiguration}}.

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



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Reply via email to