Copying SSL certificates (Cognos Analytics)

Complete the following steps to copy SSL certificates to the artifacts shared volume.

Before you begin

The Cognos Analytics service must be provisioned in IBM Cloud Pak for Data.

Obtain the oc client tool for the version of Red Hat® OpenShift® you are using. For more information, see Installing the OpenShift command-line interface.

Note: PEM files contain ASCII (or Base64) encoded data. The certificate files can be .PEM or .CER formats. The IBM Global Security Kit (.ARM) format is also supported.

Procedure

  1. Log in to your Red Hat OpenShift cluster as a cluster administrator.
    oc login OpenShift_URL:port
  2. Set the project for your Cognos Analytics installation, and set the artifacts service pod name as the bash shell variable:
    oc project ${PROJECT_CPD_INSTANCE_TETHERED}
    ARTIFACTS_POD=$(oc get pods  | grep artifacts | awk '{print $1}')
  3. Copy the certificates to the artifacts:
    oc cp <some PEM file with .pem, .cer or .arm extension> ${ARTIFACTS_POD}:/artifacts-data/certificate/files/
  4. After you add a certificate, you must shut down and restart the Cognos Analytics instance.

    Run the following shutdown.sh commands to shut down and restart the Cognos Analytics instance:

    ./shutdown.sh -t ${PROJECT_CPD_INSTANCE_TETHERED}
    ./shutdown.sh -t ${PROJECT_CPD_INSTANCE_TETHERED} -r

    For more information about creating the shutdown.sh script, see Creating administration scripts.