Generating a CSR in Tomcat server

Tomcat (Keytool) SSL Certificate Installation Instructions

Create A New Keystore:

1. First, you must use the Keytool command in order to create and manage the new Keystore File. In order for the keytool command to be recognized you may need to add the: java/bin/ directory to your individual PATH. When you begin creating your Keystore go to the directory in which you wish to manage your individual Keystore and Certificates. Then Enter the following command: keytool -genkey -alias server -keyalg RSA -keysize 2048 -keystore your_site_name.jks

2. Next, you will be asked to create a unique password for your Keystore. Next, you will be asked to enter the information for your specific Organization. You will be prompted to enter the "First" and "Last" Name, but this is the Fully Qualified Domain Name for the site in which you are securing. If you are creating a "Wildcard Certificate" then begin the asterisk. For example: *

3. Confirm all information you have entered and enter "y" or "yes" when asked. Now you will be prompted to enter your unique password in order to confirm. Now, your specific keystore file name your_site_name.jks has been created in the working directory.

Generating a CSR Certificate in Tomcat server From Your New Keystore:

1. Use the keytool that has been created to create the CSR from the Keystore. Next, enter the command: keytool -certreq -alias server -file csr.txt -keystore your_site_name.jks

2. Next, type the Keystore Password that you created earlier. Now, select Enter.

3. The CSR file named csr.txt has now been created in the specific directory.

4. Now, Open the CSR file with a text editor, and Copy and Paste the Contents including both the BEGIN and END Tags into the Online Order Form. Make sure you save the Keystore file (your_site_name.jks). The Certificates will be installed to it later.

5. Once you receive the SSL Certificate you can begin the installation process.

Tomcat (Keytool) SSL Certificate Installation Instructions
Back To Guides

©2022 The SSL Store™. A subsidiary of DigiCert, Inc. All Rights Reserved. Privacy Policy Terms Of Service