You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@activemq.apache.org by bu...@apache.org on 2013/05/02 01:21:34 UTC
svn commit: r860533 - in /websites/production/activemq/content:
cache/main.pageCache how-do-i-use-ssl.html
Author: buildbot
Date: Wed May 1 23:21:34 2013
New Revision: 860533
Log:
Production update by buildbot for activemq
Modified:
websites/production/activemq/content/cache/main.pageCache
websites/production/activemq/content/how-do-i-use-ssl.html
Modified: websites/production/activemq/content/cache/main.pageCache
==============================================================================
Binary files - no diff available.
Modified: websites/production/activemq/content/how-do-i-use-ssl.html
==============================================================================
--- websites/production/activemq/content/how-do-i-use-ssl.html (original)
+++ websites/production/activemq/content/how-do-i-use-ssl.html Wed May 1 23:21:34 2013
@@ -113,7 +113,33 @@ export SSL_OPTS = -Djavax.net.ssl.keySto
<p>Sometimes the use of javax.net.ssl.* system properties is not appropriate as they effect all SSL users in a JVM. ActiveMQ 5.2.x adds an <sslContext> element to the <amq:broker> that allows a broker specific set of SSL properties to be configured. </p>
<p>The sslContext <a shape="rect" class="external-link" href="https://svn.apache.org/repos/asf/activemq/trunk/activemq-core/src/test/java/org/apache/activemq/transport/tcp/SslContextBrokerServiceTest.java">test case</a> validates starting an ssl transport listener using the configuration specified in the broker Xbean. The sslContext element is added to the broker as follows: </p>
- <div class="error"><span class="error">Error formatting macro: snippet: java.lang.IndexOutOfBoundsException: Index: 20, Size: 20</span> </div>
+ <div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
+<pre class="code-java"><beans
+ xmlns=<span class="code-quote">"http:<span class="code-comment">//www.springframework.org/schema/beans"</span>
+</span> xmlns:amq=<span class="code-quote">"http:<span class="code-comment">//activemq.apache.org/schema/core"</span>
+</span> xmlns:xsi=<span class="code-quote">"http:<span class="code-comment">//www.w3.org/2001/XMLSchema-instance"</span>
+</span> xsi:schemaLocation="http:<span class="code-comment">//www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.0.xsd
+</span> http:<span class="code-comment">//activemq.apache.org/schema/core http://activemq.apache.org/schema/core/activemq-core.xsd">
+</span>
+ <!-- lets create an embedded ActiveMQ Broker -->
+ <amq:broker useJmx=<span class="code-quote">"<span class="code-keyword">false</span>"</span> persistent=<span class="code-quote">"<span class="code-keyword">false</span>"</span>>
+
+ <amq:sslContext>
+ <amq:sslContext
+ keyStore=<span class="code-quote">"server.keystore"</span> keyStorePassword=<span class="code-quote">"password"</span>
+ trustStore=<span class="code-quote">"client.keystore"</span> trustStorePassword=<span class="code-quote">"password"</span>/>
+ </amq:sslContext>
+
+ <amq:transportConnectors>
+ <amq:transportConnector uri=<span class="code-quote">"ssl:<span class="code-comment">//localhost:61616"</span> />
+</span> </amq:transportConnectors>
+
+ </amq:broker>
+
+</beans>
+
+</pre>
+</div></div>
<p>The sslContext is used to configure the <a shape="rect" class="external-link" href="https://svn.apache.org/repos/asf/activemq/trunk/activemq-core/src/main/java/org/apache/activemq/transport/tcp/SslTransportFactory.java">SslTransportFactory</a> for that broker. Full details of the configuration options available can be seen in the <a shape="rect" class="external-link" href="http://activemq.apache.org/schema/core/activemq-core-5.2-SNAPSHOT.xsd">schema definition</a> or in the accessors of <a shape="rect" class="external-link" href="https://svn.apache.org/repos/asf/activemq/trunk/activemq-core/src/main/java/org/apache/activemq/spring/SpringSslContext.java">org.apache.activemq.spring.SpringSslContext</a></p>