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 02:22:13 UTC
svn commit: r860538 - in /websites/production/activemq/content:
cache/main.pageCache how-do-i-use-ssl.html
Author: buildbot
Date: Thu May 2 00:22:13 2013
New Revision: 860538
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 Thu May 2 00:22:13 2013
@@ -99,7 +99,8 @@ keytool -export -alias broker -keystore
<h3><a shape="rect" name="HowdoIuseSSL-StartingtheBroker"></a>Starting the Broker</h3>
-<h4><a shape="rect" name="HowdoIuseSSL-Usingthejavax.net.ssl.SystemProperties"></a>Using the javax.net.ssl.* System Properties</h4>
+<h4><a shape="rect" name="HowdoIuseSSL-Usingthejavax.net.ssl.%5CSystemProperties"></a>Using the javax.net.ssl.* System Properties</h4>
+
<p>Before starting the broker's VM set the SSL_OPTS enviorment variable so that it knows to use the broker keystore.</p>
<div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
@@ -110,40 +111,41 @@ export SSL_OPTS = -Djavax.net.ssl.keySto
<h4><a shape="rect" name="HowdoIuseSSL-UsingSpringtoconfigureSSLforaBrokerinstance"></a>Using Spring to configure SSL for a Broker instance</h4>
-<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>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-unit-tests/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="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
+<pre class="code-xml">
+<beans
+ xmlns=<span class="code-quote">"http://www.springframework.org/schema/beans"</span>
+ <span class="code-keyword">xmlns:amq</span>=<span class="code-quote">"http://activemq.apache.org/schema/core"</span>
+ <span class="code-keyword">xmlns:xsi</span>=<span class="code-quote">"http://www.w3.org/2001/XMLSchema-instance"</span>
+ xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.0.xsd
+ http://activemq.apache.org/schema/core http://activemq.apache.org/schema/core/activemq-core.xsd">
-<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="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>>
+ <span class="code-tag"><span class="code-comment"><!-- lets create an embedded ActiveMQ Broker --></span></span>
+ <span class="code-tag"><amq:broker useJmx=<span class="code-quote">"false"</span> persistent=<span class="code-quote">"false"</span>></span>
- <amq:sslContext>
- <amq:sslContext
+ <span class="code-tag"><amq:sslContext></span>
+ <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>
+ <span class="code-tag"></amq:sslContext></span>
+ <span class="code-tag"><amq:transportConnectors></span>
+ <span class="code-tag"><amq:transportConnector uri=<span class="code-quote">"ssl://localhost:61616"</span> /></span>
+ <span class="code-tag"></amq:transportConnectors></span>
+
+ <span class="code-tag"></amq:broker></span>
+
+<span class="code-tag"></beans></span>
</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>
+<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-unit-tests/src/main/java/org/apache/activemq/spring/SpringSslContext.java">org.apache.activemq.spring.SpringSslContext</a></p>
<h3><a shape="rect" name="HowdoIuseSSL-StartingtheClient"></a>Starting the Client</h3>
+
<p>When starting the client's VM, specify the following system properties:</p>
<div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
<pre class="code-java">