2 Replies Latest reply on Mar 29, 2004 8:55 AM by vincentchun

    "Certificate authertication" Question

    vincentchun

      I have read the "JAAS Howto: README FIRST" and I run the example successfully.

      How can I run the example with "Certificate authertication"?
      and how to set the jboss to use secure socket layer (SSL)?

      Thank a lot!

      Best Regards,
      Vincent Chun

        • 1. Re:
          starksm64

          Uncomment the SSL/TLS connector in the jbossweb-tomcat41.sar/META-INF/jboss-service.xml descriptor:

           <!-- SSL/TLS Connector configuration using the SSL domain -->
           <Connector className = "org.apache.coyote.tomcat4.CoyoteConnector"
           address="" port = "8443" scheme = "https"
           secure = "true">
           <Factory className = "org.apache.coyote.tomcat4.CoyoteServerSocketFactory"
           keystoreFile="/conf/my.keystore"
           keystorePass="mypass"
           protocol = "TLS"/>
           </Connector>
          


          Specify CLIENT-CERT authentication in the web.xml descriptor:

          <web>
          ...
           <login-config>
           <auth-method>CLIENT-CERT</auth-method>
           </login-config>
          



          • 2. Re:
            vincentchun

            Thanks for Scott Stark help first!

            After I set the following
            keystoreFile="/conf/my.keystore"

            JBoss Console print out the following:
            LifecycleException: Protocol handler initialization failed: java.io.FileNotFoundException: C:\jboss-3.2.3\server\default\key\my.keystore (...

            I know that the keystore file must space on C:\jboss-3.2.3\server\default\key\my.keystore
            but How can I generate server side key (my.keystore) and client side key?

            Thank a lot first!

            Best Regards
            vincentchun