This article provides a solution to address the certificate validation error when HCX VM is installed in the vCenter.
Symptoms:
HCX deploys an ESX Virtual Machine which is not the usual ESX. It doesn't support some of the APIs like ListCACertificates() which the script calls to run checks.
So when the script runs against HCX ESX Virtual Machine, it fails to retrieve the certificates and throws error "Caught exception while validating host XXX-HCX-ESX-IP: Access to perform the operation was denied."
To resolve the issue, remove the HCX VM and retry the precheck.
Workaround
IMPORTANT NOTE: Make sure that backup/snapshots have been taken prior to any modification.