0 Replies Latest reply on Mar 19, 2011 5:14 AM by Zsolt Csik

    Is it possible to configure the stomp web-sockets to run in secure mode (wss://) ?

    Zsolt Csik Newbie

      I was wondering if it can be done in HornetQ. I tried to configure the acceptor but it did not work: i was unable to connect. Here is my acceptor config:

       

         <!-- Acceptors -->

         <acceptors>

            <!-- a regular Netty acceptor used by the JMS client -->

            <acceptor name="netty-acceptor">

               <factory-class>org.hornetq.core.remoting.impl.netty.NettyAcceptorFactory</factory-class>   

            </acceptor>

            <!-- the stomp-acceptor is configured for the Stomp over Web Sockets and -->

            <acceptor name="stomp-websocket">

               <factory-class>org.hornetq.core.remoting.impl.netty.NettyAcceptorFactory</factory-class>       

               <param key="protocol" value="stomp_ws" />

               <param key="port" value="8081" />

               <param key="host" value="localhost" />

               <param key="ssl-enabled" value="true"/>

               <param key="key-store-path" value="wsskeystore.keystore"/>

               <param key="key-store-password" value="x0wt104"/>

               <param key="trust-store-path" value="wsstruststore.truststore"/>

               <param key="trust-store-password" value="x0wt104"/>

            </acceptor>

         </acceptors>