EJB3 over SSL in JBOSS

Apply for JBOSS Remoting 2.5 or above.

 

 

<!-- SSL configuration for JBOSS remoting SSL -->
   <mbean code="org.jboss.remoting.transport.Connector"
     name="jboss.remoting:type=Connector,transport=sslsocket3843,handler=ejb3">
    <attribute name="Configuration">
     <config>
         <invoker transport="sslsocket">
             <attribute name="serverBindAddress">0.0.0.0</attribute>
             <attribute name="serverBindPort">${sslport:3843}</attribute>
          <attribute name="serverSocketFactory">jboss.remoting:service=ServerSocketFactory,type=SSL</attribute>
         </invoker>
      <handlers>
       <handler subsystem="AOP">org.jboss.aspects.remoting.AOPRemotingInvocationHandler</handler>
      </handlers>
     </config>
    </attribute>
    <depends>jboss.remoting:service=ServerSocketFactory,type=SSL</depends>   
   </mbean>

 <mbean code="org.jboss.remoting.security.SSLServerSocketFactoryService" name="jboss.remoting:service=ServerSocketFactory,type=SSL"
       display-name="SSL Server Socket Factory">
        <depends optional-attribute-name="SSLSocketBuilder" proxy-type="attribute">jboss.remoting:service=SocketBuilder,type=SSL</depends>
   </mbean>
  
   <mbean code="org.jboss.remoting.security.SSLSocketBuilder" name="jboss.remoting:service=SocketBuilder,type=SSL" display-name="SSL Server Socket Factory Builder">
   <attribute name="UseSSLServerSocketFactory">false</attribute>
   <attribute name="KeyStoreURL">${jboss.server.home.dir}/conf/gvuserverkeystore</attribute>
   <attribute name="KeyStorePassword">test!!</attribute>
   <attribute name="TrustStoreURL">${jboss.server.home.dir}/conf/gvuservertruststore</attribute>
   <attribute name="TrustStorePassword">test!!</attribute>
   <attribute name="KeyPassword">test!!</attribute>
   <attribute name="ClientAuthMode">want</attribute>
   <attribute name="SecureSocketProtocol">TLS</attribute>
   <attribute name="KeyStoreType">JKS</attribute>
   </mbean>
   

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值