Tuesday, November 16, 2010

Setup Self SSL with tomcat...

Type the following command in UNIX

keytool -genkey -alias mycert -keyalg RSA -keystore /etc/tomcat6/keystore

and answered the prompts

Then edit my server.xml file and uncommented/edited this line

maxThreads="150" scheme="https" secure="true"
clientAuth="false" sslProtocol="TLS"
keystoreFile="/etc/tomcat6/keystore"
keystorePass="mypassword" />


https://localhost:8443