How to Generate a CSR for Tomcat
How to Generate a CSR for Tomcat
1. Navigate to the Directory
The Directory is where you will manage the certificate.
2. Enter Key Generation Command
Generate a keystore and private key by running the following command:
keytool -genkey -alias server -keyalg RSA -keysize 2048 -keystore your_domain_name.jks
Replace “your_domain_name” with the primary domain you will be securing with the certificate.
3. Create the Keystore
Enter a keystore password.
Enter your Organization Information.
When prompted to enter your First and Last Name, input your “domain name” instead of your personal name.
Enter y or yes when prompted only if all information is correct.
Enter your keystore password and press Enter.
Your keystore has been created in the current directory.
4. Run the CSR Command
From the newly created keystore, generate your CSR by running the following keytool command:
keytool -certreq -alias server -file csr.txt -keystore your_domain_name.jks
Enter your keystore password and press Enter.
Your CSR has been created in the current directory.
5. Upload the CSR
Locate and open the newly created CSR from the specified location you choose in a text editor such as Notepad and copy all the text including:
-----BEGIN CERTIFICATE REQUEST-----
And
-----END CERTIFICATE REQUEST-----
After you have received your CSR, return to your 101domain account and upload your CSR or paste in your CSR code.