Java SSL Certificate Installation

Installing the certificate to your Java Keystore

  1. Download your SSL Certificate bundle file (your_domain_name.p7b) to the same folder where your keystore is. The one .p7b file contains all of the necessary certificates for your keystore.

Note: The certificate must be installed to the same keystore that was used to generate your CSR. You will get an error if you try to install it to a different keystore.
2. Type the following command to install the certificate file:

keytool -import -trustcacerts -alias server -file your_domain_name.p7b -keystore your_site_name.jks

If the certificate is installed correctly, you will receive a message stating "Certificate reply was installed in keystore"

If it asks if you want to trust the certificate. Choose y or yes.

Your keystore file (your_site_name.jks) is now ready to use on your server. Just configure your server to use it.