keytool -genkey -alias tomcat -keyalg RSA
and specify a password value of "changeit".
keytool -delete -alias tomcat
Change the password from “changeit” to “newpass”:
keytool -keypasswd -alias tomcat -keypass changeit -new newpass
The keystore is by default stored in a file named .keystore in the user's home directory, as determined by the "user.home" system property.
Read http://java.sun.com/j2se/1.3/docs/tooldocs/win32/keytool.html for more information about keytool.