You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@activemq.apache.org by "miclosoft@mail.ru" <mi...@mail.ru> on 2014/04/11 09:27:49 UTC

Configuring Transports HTTPS. WINDOWS 7

ActiveMQ.xml:
<sslContext>
            <sslContext
              keyStore="file:${activemq.base}/conf/broker.ks" 
              keyStorePassword="password" 
              trustStore="file:${activemq.base}/conf/broker.ts" 
              trustStorePassword="password"/>
        </sslContext>
...
  <transportConnector name="https"
uri="https://0.0.0.0:61620?maximumConnections=1000&amp;wireformat.maxFrameSize=104857600"/>

Follow activeMQ manual + libraries:xpp3_min-**** .jar and xmpull-**** .jar

Add java code://For SSL
         Properties systemProps = System.getProperties();
    
  
  
    systemProps.put(
    "javax.net.ssl.trustStore",
    ".//broker.ts"
       );
    systemProps.put(
    "trustStorePassword",
    "password"
       );
    systemProps.put(
    "keyStorePassword",
    "password"
       );
   
 //   systemProps.put(
  //  "debug",
  //  "ssl"
  //     );
 
    systemProps.put(
    "keyStore",
    "./broker.ks"
       );
 
System.setProperties(systemProps);
//END FOR SSL

Place your *.ks *.ts in a classpath



--
View this message in context: http://activemq.2283324.n4.nabble.com/Configuring-Transports-HTTPS-WINDOWS-7-tp4680219.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.