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:
/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.This behaviour is observed due to mismatched Identity Broker certificate
To resolve this issue, run the certificate repair script to fix the mismatch:
Copy the script patch_vidb_certs.sh to VCF Operations using scp with the root account to the /root directory.
SSH into VCF Operations using the root account and navigate to the directory: cd /root
Make the script executable by running: chmod +x patch_vidb_certs.sh
Execute the script: ./patch_vidb_certs.sh --vidb-fqdn <VIDB_FQDN> --ops-fqdn <OPS_FQDN>
Enter the VCF Operations admin password when prompted.
After the script runs successfully, wait 10 minutes.
Log into the VCF Operations UI with the admin account and go to Manage > Fleet Management > Identity & Access > VCF SSO Overview > VCF Management.
Check the box next to Operations Appliance and click Join VCF SSO.
Verify that SSO logins are now successful.