Renewing the Identity Broker certificate causes SSO configuration to fail in VCF Operations
search cancel

Renewing the Identity Broker certificate causes SSO configuration to fail in VCF Operations

book

Article ID: 461968

calendar_today

Updated On:

Products

VCF Operations

Issue/Introduction

After completing a CSR and certificate import process with an external CA, applying the certificate to the identity broker causes SSO logins to fail.

Symptoms:

  1. In the VCF Operations UI, Identity Broker displays errors such as "Identity broker is not reachable," "Identity broker is unhealthy," or "Identity broker setup is in progress. This may take a few minutes" and can remain stuck in this state for over 30 minutes. Attempting to redo the connection to VCF Operations may result in additional error messages.
  2. Additionally, under Manage > Fleet Management > Identity & Access > VCF SSO Overview > VCF Management, the Operations Appliance shows a Status of Failed.
  3. Replacing the Identity Broker certificate with a VMCA certificate does not resolve the error status
  4. On the VCF Operations cloud proxy, the log /storage/vcops/log/adapters/ManagementAdapter/ManagementAdapter_##.log records the following errors:
    ERROR ManagementAdapter ##### [ops@#### threadId="###" threadName="Collector worker thread ##" instanceId="##" ] [(##) com.vmware.adapter.management.components.iam.client.ApiClientProvider.get
    ApiClient] - Failed to generate ApiClient
    java.lang.RuntimeException: Failed to execute request POST https://<VIDB_FQDN>/acs/t/CUSTOMER/token with exception certificate_unknown(##)
    Caused by: org.bouncycastle.tls.TlsFatalAlert: certificate_unknown(##)
    Caused by: java.security.cert.CertificateException: Unable to construct a valid chain
    Caused by: java.security.cert.CertPathBuilderException: Unable to find certificate chain.

Environment

  • VCF Operations 9.1.x

  • Identity Broker 9.1.x

Cause

This behaviour is observed due to mismatched Identity Broker certificate

Resolution

To resolve this issue, run the certificate repair script to fix the mismatch:

  1. Copy the script patch_vidb_certs.sh to VCF Operations using scp with the root account to the /root directory.

  2. SSH into VCF Operations using the root account and navigate to the directory: cd /root

  3. Make the script executable by running: chmod +x patch_vidb_certs.sh

  4. Execute the script: ./patch_vidb_certs.sh --vidb-fqdn <VIDB_FQDN> --ops-fqdn <OPS_FQDN>

  5. Enter the VCF Operations admin password when prompted.

  6. After the script runs successfully, wait 10 minutes.

  7. Log into the VCF Operations UI with the admin account and go to Manage > Fleet Management > Identity & Access > VCF SSO Overview > VCF Management.

  8. Check the box next to Operations Appliance and click Join VCF SSO.

  9. Verify that SSO logins are now successful.

Attachments

patch_vidb_certs.sh get_app