Note that there are some explanatory texts on larger screens.

plurals
  1. POGlassfish 3.1.2 configuration Client Certificate for Mutual Authentication
    text
    copied!<p>I need help in configuring GF3.1.2 i have done following changes, please do let me know if i am missing anything important as after changes it is NOT working. my id is nilesh2811@gmail.com</p> <p>I could not found any particular thread or answers in forum if any link is there will be helpful. if you have any document for this please forward.</p> <p>please do the needful</p> <p>web.xml </p> <pre class="lang-xml prettyprint-override"><code>&lt;login-config&gt; &lt;auth-method&gt;CLIENT-CERT&lt;/auth-method&gt; &lt;/login-config&gt; &lt;security-constraint&gt; &lt;web-resource-collection&gt; &lt;web-resource-name&gt;Entire Application&lt;/web-resource-name&gt; &lt;url-pattern&gt;/faces/*&lt;/url-pattern&gt; &lt;http-method&gt;POST&lt;/http-method&gt; &lt;/web-resource-collection&gt; &lt;auth-constraint&gt; &lt;description/&gt; &lt;role-name&gt;authorized&lt;/role-name&gt; &lt;/auth-constraint&gt; &lt;user-data-constraint&gt; &lt;transport-guarantee&gt;CONFIDENTIAL&lt;/transport-guarantee&gt; &lt;/user-data-constraint&gt; &lt;/security-constraint&gt; &lt;security-role&gt; &lt;description/&gt; &lt;role-name&gt;authorized&lt;/role-name&gt; &lt;/security-role&gt; </code></pre> <p>sun-web.xml</p> <pre class="lang-xml prettyprint-override"><code>&lt;security-role-mapping&gt; &lt;role-name&gt;authorized&lt;/role-name&gt; &lt;principal-name&gt;admin&lt;/principal-name&gt; &lt;group-name&gt;authorized&lt;/group-name&gt; &lt;/security-role-mapping&gt; </code></pre> <p>domain.xml</p> <pre class="lang-xml prettyprint-override"><code>&lt;security-service&gt; &lt;auth-realm classname="com.sun.enterprise.security.auth.realm.file.FileRealm" name="admin-realm"&gt; &lt;property name="file" value="${com.sun.aas.instanceRoot}/config/admin-keyfile"&gt;&lt;/property&gt; &lt;property name="jaas-context" value="fileRealm"&gt;&lt;/property&gt; &lt;/auth-realm&gt; &lt;auth-realm classname="com.sun.enterprise.security.auth.realm.file.FileRealm" name="file"&gt; &lt;property name="file" value="${com.sun.aas.instanceRoot}/config/keyfile"&gt;&lt;/property&gt; &lt;property name="jaas-context" value="fileRealm"&gt;&lt;/property&gt; &lt;/auth-realm&gt; &lt;auth-realm classname="com.sun.enterprise.security.auth.realm.certificate.CertificateRealm" name="certificate"&gt; &lt;property name="assign-groups" value="authorized"&gt;&lt;/property&gt; &lt;/auth-realm&gt; </code></pre>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload