rem keytool can be found in JAVA_HOME\bin
rem
echo on
rem create a private RSA key for the Tomcat server
keytool -genkey -alias tomcat -storepass changeit -keyalg RSA -validity 180 -keystore "e:\ALF SSO and STS keystores and config\Keystores\tomcat.jks" -dname "CN=localhost, OU=ALF, O=Serena, C=US" -v
rem
rem self-sign the certificate
keytool -selfcert -alias tomcat -storepass changeit -validity 180 -keystore "e:\ALF SSO and STS keystores and config\Keystores\tomcat.jks" -dname "CN=localhost, OU=ALF, O=Serena, C=US" -v
rem
rem list the contents of the keystore
keytool -list -storepass changeit -keystore "e:\ALF SSO and STS keystores and config\Keystores\tomcat.jks"