0 Replies Latest reply on Jun 6, 2006 2:44 PM by Piotr Chojniak

    rmi + ssl + tokens

    Piotr Chojniak Newbie

      Hello
      I found problem with making rmi over ssl with smartcard on Jboss4.0.3sp1, when I try to set keyStoreUrl attribute as NONE I'am getting exception. Dose it exists any way to force Jboss to work with smartcard?

      I have configured PKCS11 properly -> client getting smartcard certificate works fine on same machine.

      jboss-service.xml

      <server>
       <mbean code="org.jboss.security.plugins.JaasSecurityDomain"
       name="jboss.security:service=JaasSecurityDomain,domain=RMI+SSL">
       <constructor>
       <arg type="java.lang.String" value="RMI+SSL"/>
       </constructor>
       <attribute name="KeyStoreURL">NONE</attribute>
       <attribute name="KeyStoreType">PKCS11</attribute>
       <attribute name="KeyStorePass">smartcardpin</attribute>
       </mbean>
      
       <mbean code="org.jboss.invocation.jrmp.server.JRMPInvoker"
       name="jboss:service=invoker,type=jrmp,socketType=SSL">
       <attribute name="RMIObjectPort">14445</attribute>
       <attribute name="RMIClientSocketFactory">
       org.jboss.security.ssl.RMISSLClientSocketFactory
       </attribute>
       <attribute name="RMIServerSocketFactory">
       org.jboss.security.ssl.RMISSLServerSocketFactory
       </attribute>
       <attribute name="SecurityDomain">java:/jaas/RMI+SSL</attribute>
       <depends>jboss.security:service=JaasSecurityDomain,domain=RMI+SSL</depends>
       </mbean>
      </server>