Create .keystore

You must create a .keystore file to be able to configure HTTPS on your system.

To create a .keystore file:
  1. Stop Tomcat services.
  2. Delete the .keystore file if it is present.
    On a typical server installation, .keystore can be found in the location: <drive>\Users\username\.keystore.
  3. Determine the version of JRE installed and make note of it.
    For instructions on determining the .JRE version, refer to the section Java (JRE/JDK) Installation.
  4. Start the command prompt.
  5. In the command prompt, type set PATH = C:\Program Files\Java\jdk<version>\bin;%PATH%;
    where <version> is the JDK version noted in step 3.
    Set path = C:\Program Files\Java\jdk<version>\bin;
  6. Enter keytool -genkey -alias tomcat -keyalg RSA
  7. Enter the credentials for creating the certificate. In the option What is your first name and last name, enter the computer name.
    1. To find the computer name, right-click on the Computer option and select Properties. Make a note of the password entered for the certificate.
  8. Verify if the new .keystore is created.
    On a typical server installation, .keystore can be found in the location: <drive>\Users\username\.keystore