Broadcom API Portal - Unable to retrieve bearer token through PAPI : ERR_CERT_AUTHORITY_INVALID
search cancel

Broadcom API Portal - Unable to retrieve bearer token through PAPI : ERR_CERT_AUTHORITY_INVALID

book

Article ID: 403266

calendar_today

Updated On:

Products

CA API Developer Portal

Issue/Introduction

You are currently trying to authorise and retrieve a bearer token to perform CRUD operations through the PAPI Application in the API Portal.
However, the process keeps failing with "Auth error Failed to fech". 
 
Further troubleshooting shows that the issue is with the certificate authority. This can be checked via the Browser Debug Console...
 
 

Environment

API Portal 5.x

Cause

The issue is expected when using a self-signed certificate in API Portal.

Internet Browsers such as Chrome, are unlikely to trust self-signed certificate. 

Resolution

The correct solution would be to Create and Sign Certificates in Portal (this is a must in production).

However,  if that is not an option or the Portal is not a production system, you can simply allow Chrome to trust the self-signed certificate. 

To do so:

  • Take note of the full URL that is hitting the ERR_CERT_AUTHROTIY error.

  • Copy and open the full URL in a new browser's tab or page.
  • Accept the risk and trust the certificate
  • Back to Portal and re-try to retrieve a token