


If certificate files including Root, Intermediate and Primary certificate received in PEM format by Certificate Authority for your domain, then import certificate files into the Java Keystore using following command in keytool command line utility: "%JAVA_HOME%\bin\keytool” -import -trustcacerts -alias root -file RootCertFileName.crt -keystore keystore.key This configuration is supported for all three connector types: NIO, NIO2 and APR.

conf/privkey.pem for the private key, conf/cert.pem for the server certificate and conf/chain.pem for the intermediary certificates and use:
#APACHE TOMCAT SSL WINDOWS#
Note: On Unix and Linux systems, the home directory would be /home/user_name/ while it would be Settings\user_name\ on Microsoft Windows systems. First, copy your keystore file to the home directory.The things you’ll need to do are to change the file location and password. Without this, an SSL/TLS connection cannot be established. Once all these steps are done successfully, you’ll need to configure your SSL connector. Once done successfully, you should see a “Certificate reply was installed in keystore” message on your screen. Keytool -import -trustcacerts -alias tomcat -file Primar圜ertFileName.crt -keystore keystore.key
#APACHE TOMCAT SSL INSTALL#
Type in the following command to install the primary certificate: Keytool -import -trustcacerts -alias intermediate -file IntermediateCertFileName.crt -keystore keystore.keyĪ “Certificate was added to keystore” message will be displayed if this went well. You only need to install an intermediate certificate if you have received one. That’s because not every CA provides an intermediate certificate. Step 2: Intermediate Certificate Installationĭepending on your CA, you may or may not need to do this step. If the installation was successful, a “Certificate was added to keystore” message will be displayed on your screen. Now, you’ll receive a message that says “Certificate already exists in system-wide CA keystore under alias Do you still want to add it to your own keystore? :”. Keytool -import -trustcacerts -alias root -file RootCertFileName.crt -keystore keystore.key You’ll need to install the following command to do it:
#APACHE TOMCAT SSL HOW TO#
Here’s how to install SSL in Tomcat Step 1: Root Certificate Installationįirst and foremost, you’ll need to install your root certificate file on your server. If you’ve taken care of this requirement, you’re good to go. You must make sure that the certificate files that you received from your certificate provider are stored in the same server directory as the keystore you created at the time of CSR generation. Protect Apache Tomcat server with an SSL certificate today! Before you begin… Get SSL for your Apache Tomcat server and save up to 71%Īuthenticate your Tomcat server using a reliable SSL certificate and set up a secure communication channel.
