Return-Path: Delivered-To: apmail-jakarta-tomcat-dev-archive@jakarta.apache.org Received: (qmail 62418 invoked by uid 500); 7 Sep 2001 18:42:18 -0000 Mailing-List: contact tomcat-dev-help@jakarta.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: list-post: Reply-To: tomcat-dev@jakarta.apache.org Delivered-To: mailing list tomcat-dev@jakarta.apache.org Received: (qmail 62407 invoked by uid 500); 7 Sep 2001 18:42:18 -0000 Delivered-To: apmail-jakarta-tomcat-4.0-cvs@apache.org Date: 7 Sep 2001 18:39:08 -0000 Message-ID: <20010907183908.97124.qmail@icarus.apache.org> From: craigmcc@apache.org To: jakarta-tomcat-4.0-cvs@apache.org Subject: cvs commit: jakarta-tomcat-4.0/webapps/tomcat-docs ssl-howto.xml X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N craigmcc 01/09/07 11:39:08 Modified: catalina/src/share/org/apache/catalina/net SSLServerSocketFactory.java webapps/tomcat-docs ssl-howto.xml Log: Make it possible to specify either an absolute or relative (resolved against $CATALINA_BASE) path for the "keystoreFile" property. PR: Bugzilla #1237 (yes, it's ancient :-) Revision Changes Path 1.5 +8 -2 jakarta-tomcat-4.0/catalina/src/share/org/apache/catalina/net/SSLServerSocketFactory.java Index: SSLServerSocketFactory.java =================================================================== RCS file: /home/cvs/jakarta-tomcat-4.0/catalina/src/share/org/apache/catalina/net/SSLServerSocketFactory.java,v retrieving revision 1.4 retrieving revision 1.5 diff -u -r1.4 -r1.5 --- SSLServerSocketFactory.java 2001/07/22 20:25:11 1.4 +++ SSLServerSocketFactory.java 2001/09/07 18:39:08 1.5 @@ -92,7 +92,9 @@ *
  • clientAuth - Require client authentication if * set to true. [false]
  • *
  • keystoreFile - Pathname to the Key Store file to be - * loaded. ["./keystore" in the user home directory]
  • + * loaded. This must be an absolute path, or a relative path that + * is resolved against the "catalina.base" system property. + * ["./keystore" in the user home directory] *
  • keystorePass - Password for the Key Store file to be * loaded. ["changeit"]
  • *
  • keystoreType - Type of the Key Store file to be @@ -193,7 +195,11 @@ } public void setKeystoreFile(String keystoreFile) { - this.keystoreFile = keystoreFile; + File file = new File(keystoreFile); + if (!file.isAbsolute()) + file = new File(System.getProperty("catalina.base"), + keystoreFile); + this.keystoreFile = file.getAbsolutePath(); } 1.6 +3 -1 jakarta-tomcat-4.0/webapps/tomcat-docs/ssl-howto.xml Index: ssl-howto.xml =================================================================== RCS file: /home/cvs/jakarta-tomcat-4.0/webapps/tomcat-docs/ssl-howto.xml,v retrieving revision 1.5 retrieving revision 1.6 diff -u -r1.5 -r1.6 --- ssl-howto.xml 2001/08/31 20:15:12 1.5 +++ ssl-howto.xml 2001/09/07 18:39:08 1.6 @@ -359,7 +359,9 @@ Add this attribute if the keystore file you created is not in the default place that Tomcat expects (a file named .keystore in the user home directory under - which Tomcat is running). + which Tomcat is running). You can specify an absolute pathname, + or a relative pathname that is resolved against the + $CATALINA_BASE environment variable. keystorePass