

The next step is an open a simple text editor (e.g. Then, type “yes” if all information is correct. You will be a asked few questions in terminal or console, where you need to enter the following information: Common name, Organizational unit, name of your organization, name of city or locality, name of your state or province, Two-letter country code for this unit. if you do not have a CSR file then get it typing the following command in keytool: keytool -certreq -keyalg RSA -alias tomcat -file certreq.csr -keystore Īfter executing a command, enter the exact Keystore password that you choose when you created a Keystore file in order to create a CSR file successfully. Certificate Authority will issue an SSL Certificate after verification of website identity. In order to obtain an SSL certificate for Apache Tomcat Server 9 from trusted SSL Certificate provider, the basic requirement is to generate CSR (Certificate Signing Request). Follow Steps to Install and configure SSL/TLS Certificate on the Apache Tomcat Server (version 9.0.4): Step 1: Generate CSR on Apache Tomcat Server using Keytool (default password is “changeit”) you can also set your customized password and specify it in a server.xml configuration file. To create Java Keystore (.jks) file type the following command:įor Windows: "%JAVA_HOME%\bin\keytool” -genkey -alias tomcat -keyalg RSA -keystore \Users\\Documents\keystoreĪfter executing the above command, you will be prompted for a Keystore password. This file is used to configure the SSL certificate on Tomcat Web Server. JKS file known as “Jave Keystore” format created by key tool, which is a command-line key and certificate management utility provided by Java. First of all, let’s create a Keystore file. Currently, Tomcat supports JKS, PKCS11 or PKCS12 format type keystrore. This article will inform you procedure to install an SSL certificate on Apache Tomcat Server (version 9.0.4).

It is very important that an SSL certificate should be accurately installed on your web server with the following proper procedures. It brings the highest standards of security to the websites which in turn helps in preventing interception of data. SSL certificates are a necessity to establish secure online data transmission.
