05 April 2007

SSL VS Tomcat Step by Step Configuration

1 . Certificate Generation

Create a certificate keystore by executing the following command

# keytool -genkey -alias tomcat -keyalg RSA

and specify a password value of "changeit".

2 . Tomcat Configuration

open the server.xml file from tomcat_home /conf directory and uncommit or add the following configurations

<-- 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" clientauth="false" protocol="TLS">

next start the server and try https://localhost:8443/ url . you should see the usual Tomcat splash page

No comments: