Posts

Showing posts with the label SSL

Quick Tomcat SSL Setup

Setting up SSL in Tomcat is not that tough using JDK and Tomcat alone.But for production environment  OpenSSL is recomended. In the following section we will see how we can setup SSL in tomcat, so that the client can establish HTTPS connection with the Tomcat Server Instance. Mainly we have to follow the following steps, Generating Keystore using JDK keytool utility Configuring the Tomcat Instance to use the Keystore . Lets see now these steps in details, 1) Generating Keystore using JDK keytool Utility Here we will be generating a keystore with certificate, which we can use in next step to configure the Tomcat Instance. It is assumed that you have have JDK 5 or higher installed in your box along with Tomcat 5 or higher. Now go to the command prompt and run the following keytool command. keytool - genkey -alias tomcatkeys - keys tore siddtomcat5.keystore where the alias name is tomcatkeys keystore  and keystore name is  siddtomcat5.keystore. It wil...