Backing up when manual certificate management is enabled

Determine whether manual certificate management is enabled and back up.

About this task

If manual certificate management was configured, you must back up the secret {instanceId}-cert-publicneeds.
To determine whether manual certificate management is enabled, examine the Suite resource in the Maximo Application Suite core namespace by running the following command:
oc get Suite $MAS_INSTANCE_ID -n mas-{instanceId}-core -o yaml
If .spec.settings.manualCertMgmt is set to true, then manual certificate management is enabled.

Procedure

Back up the associated secret.
  • Use the following command:
    oc get Secret $MAS_INSTANCE_ID-cert-public -n mas-{instanceId}-core -o yaml | yq 'del(.metadata.creationTimestamp, .metadata.ownerReferences, .metadata.generation,  .metadata.resourceVersion, .metadata.uid, .metadata.annotations["kubectl.kubernetes.io/last-applied-configuration"], .status)' >  ./Secret-$MAS_INSTANCE_ID-cert-public.yaml
  • Alternatively, use the script, which automatically detects whether manual certificate management is enabled and backs up the secret {instanceId}-cert-public.