ccain 01/09/23 14:01:10
Modified: webapps/tomcat-docs ssl-howto.xml
Log:
Specify that the keytool in JAVA_HOME (the JDK where JSSE should have been
installed) should be used when generating a self-signed cert.
Submitted by: Patrick Luby <[EMAIL PROTECTED]>
Revision Changes Path
1.8 +20 -3 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.7
retrieving revision 1.8
diff -u -r1.7 -r1.8
--- ssl-howto.xml 2001/09/12 17:38:47 1.7
+++ ssl-howto.xml 2001/09/23 21:01:10 1.8
@@ -35,9 +35,15 @@
set an environment variable <code>JSSE_HOME</code> that points at the
directory into which you installed JSSE.</li><br/><br/>
<li>Create a certificate keystore by executing the following command:
+<p>Windows:</p>
<source>
-keytool -genkey -alias tomcat -keyalg RSA
+%JAVA_HOME%\bin\keytool -genkey -alias tomcat -keyalg RSA
</source>
+<p>Unix:</p>
+<source>
+$JAVA_HOME/bin/keytool -genkey -alias tomcat -keyalg RSA
+</source>
+<p></p>
and specify a password value of "changeit".</li><br/><br/>
<li>Uncomment the "SSL HTTP/1.1 Connector" entry in
<code>$CATALINA_HOME/conf/server.xml</code> and tweak as necessary.</li>
@@ -202,8 +208,13 @@
<p>To create a new keystore from scratch, containing a single self-signed
Certificate, execute the following from a terminal command line:</p>
+<p>Windows:</p>
+<source>
+%JAVA_HOME%\bin\keytool -genkey -alias tomcat -keyalg RSA
+</source>
+<p>Unix:</p>
<source>
-keytool -genkey -alias tomcat -keyalg RSA
+$JAVA_HOME/bin/keytool -genkey -alias tomcat -keyalg RSA
</source>
<p>(The RSA algorithm should be preferred as a secure algorithm, and this
@@ -216,8 +227,14 @@
to the <code>keytool</code> command shown above. You will also need to
reflect this new location in the <code>server.xml</code> configuration file,
as described later. For example:</p>
+<p>Windows:</p>
+<source>
+%JAVA_HOME%\bin\keytool -genkey -alias tomcat -keyalg RSA \
+ -keystore \path\to\my\keystore
+</source>
+<p>Unix:</p>
<source>
-keytool -genkey -alias tomcat -keyalg RSA \
+$JAVA_HOME/bin/keytool -genkey -alias tomcat -keyalg RSA \
-keystore /path/to/my/keystore
</source>