IBM Support

SSLCertVerificationError occurs when using notebooks with Maximo Monitor API

Troubleshooting


Problem

When you use the default IBM® Maximo® Predict notebooks in IBM® Watson® Studio to call the IBM Maximo® Monitor API, the SSLCertVerificationError error occurs.

Resolving The Problem

This issue occurs if you use a self-signed certificate for Maximo Monitor. For production environments, use a trusted public certificate. 

To resolve the problem, complete the following steps:

  1. Retrieve the monitor_url value. This value is used to create an environment variable.
    1. As an administrator, log in to Red Hat® OpenShift® web console.
    2. From the Project field, open the monitor project.
    3. From the cluster dashboard, in the navigation menu, click Networking > Routes.
    4. Open the monitor-datalake-main route.
    5. Copy the value from the Location field, excluding the ‘api/datalake’ directory. The resulting URL is the monitor_url value.
  2. Create an environment variable.
    1. In the notebook, run the following commands in the following order. Replace the {monitor_url} variable with the monitor_url value. 
      os.environ['isICP']='true'
       
      os.environ['REST_METADATA_URL']={monitor_url}
      os.environ['REST_KPI_URL']={monitor_url}
  3. Retrieve the Maximo Monitor certificate.
    1. As an administrator, log in to OpenShift web console.
    2. From the Project field, open the monitor project.
    3. From the cluster dashboard, in the navigation menu, click Workloads > Secrets.
    4. Open the public-monitor-tls secret.
    5. In the Data section, click Reveal Values.
    6. Copy the value that is in the ca.crt field. If the field is empty, copy the value in the tls.crt field.
    7. Paste the value into a .txt file and then save the file as ca_public_cert.pem
  4. Import the .pem certificate file in to IBM Cloud Pak for Data as a data asset. For more information, see the IBM Cloud Pak for Data online product documentation (https://www.ibm.com/support/producthub/icpdata/docs/content/SSQNUZ_latest/wsj/manage-data/add-data-project.html)

Document Location

Worldwide

[{"Line of Business":{"code":"LOB59","label":"Sustainability Software"},"Business Unit":{"code":"BU059","label":"IBM Software w\/o TPS"},"Product":{"code":"SSRHPA","label":"IBM Maximo Application Suite"},"ARM Category":[{"code":"a8m0z000000cxN3AAI","label":"Maximo Health"},{"code":"a8m0z000000cxN8AAI","label":"Maximo Predict"}],"ARM Case Number":"","Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"8.2.0;8.3.0"}]

Document Information

Modified date:
02 February 2021

UID

ibm16409918