<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<body link="#355491" alink="#4262a1" vlink="#355491" style="background: #e2e2e2; margin: 0; padding: 20px;">

<div>
        <table cellpadding="0" bgcolor="#FFFFFF" border="0" cellspacing="0" style="border: 1px solid #dadada; margin-bottom: 30px; width: 100%; -moz-border-radius: 6px; -webkit-border-radius: 6px;">
                <tbody>
                        <tr>

                                <td>

                                        <table border="0" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF" style="border: solid 2px #ccc; background: #dadada; width: 100%; -moz-border-radius: 6px; -webkit-border-radius: 6px;">
                                                <tbody>
                                                        <tr>
                                                                <td bgcolor="#000000" valign="middle" height="58px" style="border-bottom: 1px solid #ccc; padding: 20px; -moz-border-radius-topleft: 3px; -moz-border-radius-topright: 3px; -webkit-border-top-right-radius: 5px; -webkit-border-top-left-radius: 5px;">
                                                                        <h1 style="color: #333333; font: bold 22px Arial, Helvetica, sans-serif; margin: 0; display: block !important;">
                                                                        <!-- To have a header image/logo replace the name below with your img tag -->
                                                                        <!-- Email clients will render the images when the message is read so any image -->
                                                                        <!-- must be made available on a public server, so that all recipients can load the image. -->
                                                                        <a href="https://community.jboss.org/index.jspa" style="text-decoration: none; color: #E1E1E1">JBoss Community</a></h1>
                                                                </td>

                                                        </tr>
                                                        <tr>
                                                                <td bgcolor="#FFFFFF" style="font: normal 12px Arial, Helvetica, sans-serif; color:#333333; padding: 20px;  -moz-border-radius-bottomleft: 4px; -moz-border-radius-bottomright: 4px; -webkit-border-bottom-right-radius: 5px; -webkit-border-bottom-left-radius: 5px;"><h3 style="margin: 10px 0 5px; font-size: 17px; font-weight: normal;">
    Re: Remoting with SSL and Cipher Suite
</h3>
<span style="margin-bottom: 10px;">
    created by <a href="https://community.jboss.org/people/renz13">renz13</a> in <i>JBoss AS 7 Development</i> - <a href="https://community.jboss.org/message/743154#743154">View the full discussion</a>
</span>
<hr style="margin: 20px 0; border: none; background-color: #dadada; height: 1px;">

<div class="jive-rendered-content"><p>I don't understand why do you say they are "completely unrelated" (my english is not so good, maybe i've not explain correctly my problem)?</p><p>For the moment I'm using security-realm to manage athentication/authorization of my remote ejb client.</p><p>I use a database to store login/password and roles and use ssl to secure and identify my server.</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>Here is a part of my standalone.xml, which is working :</p><p>....</p><p>&lt;security-realm name="myRealm"&gt;</p><p>&#160;&#160;&#160; &lt;server-identities&gt;</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;ssl&gt;</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;keystore path="server.keystore" relative-to="jboss.server.config.dir" password="pass"/&gt;</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;/ssl&gt;</p><p>&#160;&#160;&#160; &lt;/server-identities&gt;</p><p>&#160;&#160;&#160; &lt;authentication&gt;</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;jaas name="myDomain"/&gt;</p><p>&#160;&#160;&#160; &lt;/authentication&gt;</p><p>&lt;/security-realm&gt;</p><p>......</p><p>&lt;subsystem xmlns="urn:jboss:domain:remoting:1.1"&gt;</p><p>&#160;&#160;&#160; &lt;connector name="remoting-connector" socket-binding="remoting" security-realm="AreaFseRealm"/&gt;</p><p>&lt;/subsystem&gt;</p><p>.....</p><p>&lt;security-domain name="myDomain" cache-type="default"&gt;</p><p>&#160;&#160;&#160; &lt;authentication&gt;</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;login-module code="Remoting" flag="optional"&gt;</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;module-option name="password-stacking" value="useFirstPass"/&gt;</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;/login-module&gt;</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;login-module code="Database" flag="required"&gt;</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;module-option name="dsJndiName" value="java:jboss/datasources/myDS"/&gt;</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;module-option name="principalsQuery" value="SELECT pass FROM user WHERE username=?"/&gt;</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;module-option name="rolesQuery" value="SELECT r.roles, 'Roles' FROM role r INNER JOIN user u USING (id_user) WHERE u.username=?"/&gt;</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;module-option name="password-stacking" value="useFirstPass"/&gt;</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;/login-module&gt;</p><p>&#160;&#160;&#160; &lt;/authentication&gt;</p><p>&lt;/security-domain&gt;</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>&#160;&#160;&#160;&#160; </p><p>What I try to add now is :</p><p>- client certificate authentication (with revocation check) : clients certificates are delivered by a CA. I have the CA certificate and I can download CRL =&gt; Maybe i've to code my own TrustManager or something else</p><p>- use one of this cipher (i'm developping both client and server side) :</p><p>&#160;&#160;&#160;&#160; * TLS_RSA_WITH_3DES_EDE_CBC_SHA</p><p>&#160;&#160;&#160;&#160; * TLS_RSA_WITH_AES_128_CBC_SHA</p><p>&#160;&#160;&#160;&#160; * TLS_RSA_WITH_AES_256_CBC_SHA</p><p>&#160;&#160;&#160;&#160; =&gt; If it's not possible, how can I know the cipher used by default?</p><p>&#160;&#160;&#160;&#160; </p><p><span>I thought this could be done in the &lt;jsse&gt; element looking at </span><a class="jive-link-external-small" href="https://docs.jboss.org/author/display/AS71/Security+subsystem+configuration" target="_blank">https://docs.jboss.org/author/display/AS71/Security+subsystem+configuration</a><span>&#160; </span></p></div>

<div style="background-color: #f4f4f4; padding: 10px; margin-top: 20px;">
    <p style="margin: 0;">Reply to this message by <a href="https://community.jboss.org/message/743154#743154">going to Community</a></p>
        <p style="margin: 0;">Start a new discussion in JBoss AS 7 Development at <a href="https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2225">Community</a></p>
</div></td>
                        </tr>
                    </tbody>
                </table>


                </td>
            </tr>
        </tbody>
    </table>

</div>

</body>
</html>