5.4.1 Import Server Certificate to Java Keystore

You must import the server certificate (.cer) file to the Java keystore.
To import the server certificate, perform the following steps:
  1. Create a .cer file from the server.keystore.
    keytool -export -alias <alias>-file <filename>.cer -keystore <path_to_Keystore>/server.keystore -storepass secret
    Example:
    keytool -export -alias demo_alias -file server.cer -keystore OFS_MMG/config/server.keystore -storepass secret
  2. Import .cer file generated from the above step to java keystore.
    keytool -import -file "<path_to_Keystore>/<filename>.cer" -alias <alias>-keystore "<java_home>/lib/security/cacerts" -storepass "changeit"

    Note:

    The above step should be performed by the Root user.