The Secure Socket Layer (SSL) is a technology that helps ensure the authentication, integrity, and confidentiality of SPML messages. For information on setting up the SSL, see the Configuration HOWTO at http://jakarta.apache.org/tomcat/.
Note: The following procedure is provided for reference only. You may want to configure your SSL certificate differently or change your keystore password to one of your own choosing for better security. Also, if you have installed JDK version 1.5, you should refer to http://jakarta.apache.org/tomcat/ for details.
To install and configure SSL support for Tomcat using a self-signed certificate, perform the following steps:
On Windows systems, you should enter:
%JAVA_HOME%\bin\keytool -genkey -alias tomcat -keyalg RSA -keystore \path\keystore_filename
On UNIX systems, you should enter the following:
%JAVA_HOME%/bin/keytool -genkey -alias tomcat -keyalg RSA -keystore \path\keystore_filename
The keystore creation process begins.
Note: The default password used by Tomcat is changeit (all lowercase). If preferred, you can specify a custom password, but you must then specify the custom password in the server.xml configuration file also (see Step 8).
The keystore creation process continues.
The keystore creation process continues.
A keystore file with a certificate that your server can use is created.
<!-- Define an SSL HTTP/1.1 Connector on port 8443 --> <!-- <Connector className="org.apache.catalina.connector.http.HttpConnector" port="8443" minProcessors="5" maxProcessors="75" enableLookups="true" acceptCount="10" debug="0" scheme="https" secure="true"> <Factory className="org.apache.catalina.net.SSLServerSocketFactory" clientAuth="false" protocol="TLS"/> </Connector> -->
If the Connector element is commented out, you must remove the comment tags, defined as less than sign, exclamation point, hyphen, hyphen (<!--) and hyphen, hyphen, greater than sign (-->) around it.
keystoreFile
Specifies the location where the keystore file is located.
keystorePass
Specifies the keystore (and certificate) password.
The connector information should look similar to the following:
<Connector className="org.apache.catalina.connector.http.HttpConnector" port="8443" minProcessors="5" maxProcessors="75" enableLookups="true" acceptCount="10" debug="0" scheme="https" secure="true"> <Factory className="org.apache.catalina.net.SSLServerSocketFactory" keystoreFile="your_keystore_full_path" keystorePass="your_keystore_password" clientAuth="false" protocol="TLS"/> </Connector>
SSL support and self-signed certificates are configured for Tomcat.
Copyright © 2011 CA. All rights reserved. | Email CA Technologies about this topic |