qpid-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From conflue...@apache.org
Subject [CONF] Apache Qpid > Configure Java Qpid to use a SSL connection.
Date Mon, 26 Nov 2012 10:26:00 GMT
<html>
<head>
    <base href="https://cwiki.apache.org/confluence">
            <link rel="stylesheet" href="/confluence/s/2042/9/21/_/styles/combined.css?spaceKey=qpid&amp;forWysiwyg=true"
type="text/css">
    </head>
<body style="background: white;" bgcolor="white" class="email-body">
<div id="pageContent">
<div id="notificationFormat">
<div class="wiki-content">
<div class="email">
    <h2><a href="https://cwiki.apache.org/confluence/display/qpid/Configure+Java+Qpid+to+use+a+SSL+connection.">Configure
Java Qpid to use a SSL connection.</a></h2>
    <h4>Page <b>edited</b> by             <a href="https://cwiki.apache.org/confluence/display/~k-wall">keith
wall</a>
    </h4>
        <br/>
                         <h4>Changes (1)</h4>
                                 
    
<div id="page-diffs">
                    <table class="diff" cellpadding="0" cellspacing="0">
    
            <tr><td class="diff-added-lines" style="background-color: #dfd;">{info}
<br>This page applies to Java Broker versions before 0.12. For the master copy of this
documentation see the SSL section in the  [Java  documentation|http://qpid.apache.org/documentation.html]
<br>{info} <br> <br> <br></td></tr>
            <tr><td class="diff-unchanged" >h2. Using SSL connection with Qpid
Java. <br> <br></td></tr>
            <tr><td class="diff-snipped" >...<br></td></tr>
    
            </table>
    </div>                            <h4>Full Content</h4>
                    <div class="notificationGreySide">
        <div class='panelMacro'><table class='infoMacro'><colgroup><col
width='24'><col></colgroup><tr><td valign='top'><img src="/confluence/images/icons/emoticons/information.gif"
width="16" height="16" align="absmiddle" alt="" border="0"></td><td>This page
applies to Java Broker versions before 0.12. For the master copy of this documentation see
the SSL section in the  <a href="http://qpid.apache.org/documentation.html" class="external-link"
rel="nofollow">Java  documentation</a></td></tr></table></div>


<h2><a name="ConfigureJavaQpidtouseaSSLconnection.-UsingSSLconnectionwithQpidJava."></a>Using
SSL connection with Qpid Java.</h2>

<p>This section will show how to use SSL to enable secure connections between a Java
client and broker.</p>


<h2><a name="ConfigureJavaQpidtouseaSSLconnection.-Setup"></a>Setup</h2>

<h3><a name="ConfigureJavaQpidtouseaSSLconnection.-BrokerSetup"></a>Broker
Setup</h3>

<p>The broker configuration file (config.xml) needs to be updated to include the SSL
keystore location details.</p>
<div class="code panel" style="border-style: solid;border-width: 1px;"><div class="codeHeader
panelHeader" style="border-bottom-width: 1px;border-bottom-style: solid;"><b>Additions
required to Connector Section</b></div><div class="codeContent panelContent">
<pre class="code-java">
&lt;ssl&gt;
    &lt;enabled&gt;<span class="code-keyword">true</span>&lt;/enabled&gt;
    &lt;sslOnly&gt;<span class="code-keyword">true</span>&lt;/sslOnly&gt;
    &lt;keystorePath&gt;/path/to/keystore.ks&lt;/keystorePath&gt;
    &lt;keystorePassword&gt;keystorepass&lt;/keystorePassword&gt;
&lt;/ssl&gt;
</pre>
</div></div>

<p>The sslOnly option is included here for completeness however this will disable the
unencrypted port and leave only the SSL port listening for connections.</p>


<h3><a name="ConfigureJavaQpidtouseaSSLconnection.-ClientSetup"></a>Client
Setup</h3>

<p>The best place to start looking is class <em>SSLConfiguration</em> this
is provided to the connection during creation however there is currently no example that demonstrates
its use.</p>

<h2><a name="ConfigureJavaQpidtouseaSSLconnection.-Performingtheconnection."></a>Performing
the connection.</h2>


    </div>
        <div id="commentsSection" class="wiki-content pageSection">
        <div style="float: right;">
            <a href="https://cwiki.apache.org/confluence/users/viewnotifications.action"
class="grey">Change Notification Preferences</a>
        </div>
        <a href="https://cwiki.apache.org/confluence/display/qpid/Configure+Java+Qpid+to+use+a+SSL+connection.">View
Online</a>
        |
        <a href="https://cwiki.apache.org/confluence/pages/diffpagesbyversion.action?pageId=72194&revisedVersion=5&originalVersion=4">View
Changes</a>
                |
        <a href="https://cwiki.apache.org/confluence/display/qpid/Configure+Java+Qpid+to+use+a+SSL+connection.?showComments=true&amp;showCommentArea=true#addcomment">Add
Comment</a>
            </div>
</div>
</div>
</div>
</div>
</body>
</html>

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@qpid.apache.org
For additional commands, e-mail: commits-help@qpid.apache.org


Mime
View raw message