Create .keystore
You must create a .keystore file to be able to configure HTTPS on your system.
To create a
.keystore file:
- Stop Tomcat services.
-
Delete the
.keystore file if it is present.
On a typical server installation, .keystore can be found in the location: <drive>\Users\username\.keystore.
-
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.
- Start the command prompt.
-
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; - Enter keytool -genkey -alias tomcat -keyalg RSA
-
Enter the credentials for creating the certificate. In the option
What is your first name and last name, enter the computer name.
- To find the computer name, right-click on the Computer option and select Properties. Make a note of the password entered for the certificate.
-
Verify if the new
.keystore is created.
On a typical server installation, .keystore can be found in the location: <drive>\Users\username\.keystore