AF
1. Feel Free to ask and submit anything on Anyforum.in and get satisfactory answer
3. Our Experts are looking for yours ?.

# web-applications: How can we make our web application to use the https protocol?

 Please explain the way of making our web application to use the https protocol. web x 13applications x 10 Posted On : 2016-05-24 22:23:20.0 Rishi Kumar 523188221945 5

 We can do or configure our application on tomcat server. The description below uses the variable name $CATALINA_HOME to refer to the directory into which you have installed Tomcat 4, and is the base directory against which most relative paths are resolved. However, if you have configured Tomcat 4 for multiple instances by setting a CATALINA_BASE directory, you should use$CATALINA_BASE instead of $CATALINA_HOME for each of these references. To install and configure SSL support on Tomcat 4, you need to follow these simple steps. For more information, read the rest of this HOW-TO. 1. Download JSSE 1.0.2 (or later) from http://java.sun.com/products/jsse/ and either make it an installed extension on the system, or else set an environment variable JSSE_HOME that points at the directory into which you installed JSSE. 2. Create a certificate keystore by executing the following command: Windows: --------------------------------------- %JAVA_HOME%\bin\keytool -genkey -alias tomcat -keyalg RSA Unix: ---------------------------------$JAVA_HOME/bin/keytool -genkey -alias tomcat -keyalg RSA and specify a password value of "changeit". (The RSA algorithm should be preferred as a secure algorithm, and this also ensures general compatibility with other servers and components.) This command will create a new file, in the home directory of the user under which you run it, named ".keystore". To specify a different location or filename, add the -keystore parameter, followed by the complete pathname to your keystore file, to the keytool command shown above. You will also need to reflect this new location in the server.xml configuration file, as described later. For example: Windows: -------------------------------- %JAVA_HOME%\bin\keytool -genkey -alias tomcat -keyalg RSA \ -keystore \path\to\my\keystore Unix: -------------------------------- $JAVA_HOME/bin/keytool -genkey -alias tomcat -keyalg RSA \ -keystore /path/to/my/keystore After executing this command, you will first be prompted for the keystore password. The default password used by Tomcat is "changeit" (all lower case), although you can specify a custom password if you like. You will also need to specify the custom password in the server.xml configuration file, as described later. Next, you will be prompted for general information about this Certificate, such as company, contact name, and so on. This information will be displayed to users who attempt to access a secure page in your application, so make sure that the information provided here matches what they will expect. Finally, you will be prompted for the key password, which is the password specifically for this Certificate (as opposed to any other Certificates stored in the same keystore file). You MUST use the same password here as was used for the keystore password itself. (Currently, the keytool prompt will tell you that pressing the ENTER key does this for you automatically.) If everything was successful, you now have a keystore file with a Certificate that can be used by your server. 3. Uncomment the "SSL HTTP/1.1 Connector" entry in$CATALINA_HOME/conf/server.xml. For more information visit: http://tomcat.apache.org/tomcat-4.1-doc/ssl-howto.html Posted On : 2016-05-24 22:50:20 Satisfied : 0 Yes  0 No Garima Gupta 596129026007Reply This Thread 0