You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by "Manty, George" <Ge...@hp.com> on 2002/11/19 16:58:50 UTC

Changing Keystore location when embedding Tomcat

I am taking advantage of the Embedded tomcat class in Tomcat 4.12 to embed tomcat in an application.  

I am trying to determine how to change the location of the default keystore.  This is normally done by modifying the server.xml file, but since the embedded code does not use the server.xml file I need to find a programmatic way to change the location.  The following is an example of the code to create the connector:

    Connector connector =
      embedded.createConnector(null, 443, true);
    

Since the embedded code ignores the server.xml file and since the API for creating the connector does not allow you to change the keystore location, I looked at the connector class.  It appears that the connector class does not allow you to change the location for the keystore file either, but I could be missing something.  Is it possible to change the keystore location, without modifying the core Tomcat classes?

Thank you,
George


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>