Apache Tomcat Server SSL Certificate CSR Creation

Firstly you should create new “Keystore” to install SSL certificate on server. Follow below:

1.Run command (Java Runtime Environment (JRE) had been installed).


§  $JAVA_HOME/bin/keytool -genkey -alias tomcat -keyalg RSA -keystore [path].


2. After that, follow below step by step;


§  Give password that you will use. "Enter keystore password:”.

§  Write server adresss (like www.e-tugra.com.tr) as answer "What is your first and last name?"

§  Write organizational unit as answer "What is the name of your organizational unit?"

§  Write organization name (like E-Tuğra) as answer "What is the name of your organization?"

§  Write City or Locality as answer "What is the name of your City or Locality?".

§  Write State of Province as answer "What is the name of your State or Province?". It can be same previous answer.

§  Write two letter country code (like TR)  "What is the two-letter country code for this unit?"


3. Check your enters. If it is correct write “Yes” on command line and then click “Enter”.


4. Finally, create your CSR file with below commands

§  $JAVA_HOME/bin/keytool -certreq -keystore /.keystore -alias tomcat -file mydomain.csr


5. Remember the filename that you choose and the location to which you save it. You will need to open this file as a text file and copy the entire body of it (including the Begin and End Certificate Request tags) into the online order process when prompted