Preparing Certificates

Last published : Jul 27, 2026
This task is a prerequisite for all SSL configurations and must be completed before running the Manager installer or configuration tools.
Procedure
  1. Create a temporary directory (for example, /opt/mycerts) and navigate to it.
  2. Copy the cacerts file from the JDK to ssl.keystore.
    • For JDK8:
      cp $JAVA_HOME/jre/lib/security/cacerts ssl.keystore
    • For JDK11/JDK17:
      cp $JAVA_HOME/lib/security/cacerts ssl.keystore
  3. If you do not have a CA-signed certificate, then generate a self-signed certificate and its associated private key using the following command:
        openssl req -x509 -sha256 -nodes -days 1826 -newkey \
          rsa:2048 -keyout server.key -out server.crt
  4. Create a PKCS #12 format file that contains your keypair by running the following command:
    openssl pkcs12 -export -in server.crt -inkey server.key -out server.pkcs12
  5. Convert the PKCS #12 file to a JKS format keystore by running the following command:
    keytool -importkeystore -srckeystore server.pkcs12 -srcstoretype pkcs12 -srcstorepass changeit -destkeystore server.keystore -deststoretype jks -deststorepass changeit
  6. Import the certificate into ssl.keystore.
    • For a self-signed certificate:
      keytool -importcert -file server.crt -keystore ssl.keystore -alias MySelfSigned -storepass changeit
    • For CA-signed certificates with the hierarchy root > intermediate > leaf, add both the root and intermediate certificates:
      keytool -importcert -file root.crt -keystore ssl.keystore -alias rootca -storepass changeitkeytool -importcert -file intermediate.crt -keystore ssl.keystore -alias intermediateca -storepass changeit
  7. Create ssl.pem.
    • For a self-signed certificate, copy server.crt to ssl.pem by running the following command:
      cp server.crt ssl.pem
    • For a CA-signed certificate, concatenate all CA signing authority certificates (intermediate followed by root) by running the following command:
      cat intermediate.crt root.crt > ssl.pem
  8. For self-signed certificates, if you enable SSL on all components installed on different hosts, perform the following steps:
    1. Create certificates for all components. To do this, perform steps 3 and 4.
    2. Import each component’s server.crt into ssl.keystore using the following command:
      keytool -importcert -file server.crt -keystore ssl.keystore -alias MySelfSignedDir -storepass changeit
      Repeat step b for all the components (ensure that the alias is different for each entry).
    3. Create ssl.pem containing the certificates of all components by running the following command:
      cat dserver.crt sserver.crt bserver.crt server.crt > ssl.pem
      Note:
      • dserver.crt - is the Primary Director's server.crt
      • sserver.crt - is the Secondary Director's server.crt
      • bserver.crt- is the Standalone Broker's server.crt
      • server.crt - is the Failover Broker's server.crt
Related information