8.2 Installing the SSL Certificates to the Keystore

Navigate to the folder where all the certificates have been placed and ensure that %JAVA_HOME% is added as path under environment variable. We have used the root certificate, intermediate certificate, and the server certificate. If your certificate is signed from the Root Authority, then do not run the intermediate certificate command. In this installation, we have used intermediate certificate.

To install the SSL certificate to keystore:

  1. Install the SSL Certificate (root) file to your keystore using the following command:

    C:\>keytool -importcert -keystore nsdserver.jks -alias root -file root.cer

  2. Choose Y or Yes to trust the certificate.

  1. Install the SSL Certificate (intermediate) file to your keystore using the following command:

    C:\>keytool -importcert -keystore nsdserver.jks -alias nsdroot -file 1_root_bundle.crt

  2. Choose Y or Yes to trust the certificate.

  1. Install the SSL Certificate (server) file to your keystore using the following command:

    C:\>keytool -importcert -keystore nsdserver.jks -alias nsdserver -trustcacerts -file 2_srm-tst- nsd.zenworkslabs.com.crt

    The Certificate reply was installed in keystore message is displayed.

  2. Choose Y or Yes to trust the certificate.

  3. Use the keystore file (your_site_name.jks) to configure your server.