Get Even More Visitors To Your Blog, Upgrade To A Business Listing >>

Four easy Step for Configuring tomcat with SSL

4 Easy Step for Configuring Tomcat with SSL
==============================================================
1) Prepare certificate Keystore
%JAVA_HOME%\bin\keytool -genkey -alias tomcat -keyalg RSA -keystore server.keystore

2) Exporting certificate from keystore to an external file server.cer
keytool -export -alias tomcat -storepass server -file server.cer -keystore server.keystore

3) Enable this tag in server.xml

maxThreads="150" minSpareThreads="25" maxSpareThreads="75"
enableLookups="false" disableUploadTimeout="true"
acceptCount="100" scheme="https" secure="true"
clientAuth="false" sslProtocol="TLS"
keystore="C:/Program Files/Java/jdk1.5.0/bin/server.keystore"
keypass="server"
/>

Here keystore attribute is keystore file name with location and
keypass is password given during generating keystore file

4) now try https://localhost:8443/ in internet explorer and enjoy


This post first appeared on Java Interview Questions, please read the originial post: here

Share the post

Four easy Step for Configuring tomcat with SSL

×

Subscribe to Java Interview Questions

Get updates delivered right to your inbox!

Thank you for your subscription

×