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
==============================================================
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
No comments:
Post a Comment