You must first create a keystore file to store required information.
To create a keystore file:
Open a terminal session (command prompt for Windows) on the machine where you are running Apache Tomcat.
-
Create a keystore file using Java.
-
Do one of the following:
-
Linux: enter
cd $JAVA_HOME/bin
-
Windows: enter
cd %JAVA_HOME%/bin
-
- Enter:
keytool -genkey -alias tomcat -keyalg RSA
- You are prompted for the information about your organization. Enter the
following values:Note: The values in bold are examples.
trilliumuser: bin trilliumuser$ keytool -genkey -alias tomcat -keyalg RSA Enter keystore password: mypassword Re-enter new password: mypassword What is your first and last name? [Unknown]: Trillium User What is the name of your organizational unit? [Unknown]: Trillium What is the name of your organization? [Unknown]: Trillium What is the name of your City or Locality? [Unknown]: Burlington What is the name of your State or Province? [Unknown]: MA What is the two-letter country code for this unit? [Unknown]: US Is CN=Trillium User, OU=Trillium, O=Trillium, L=Burlington, ST=MA, C=US correct? [no]: yes Enter key password for (RETURN if same as keystore password): mypassword Re-enter new password: mypassword
- The .keystore file will be generated in your user
home directory.
- Linux:
/home/username
- Windows:
C:\Users\username
- Linux:
-