"Connection cannot be established because certificate is not trusted"."Failed to trust Certificate(s). Error while validating certificate"/var/log/vmware/vcf/operationsmanager/operationsmanager.log) YYYY-MM-DDTHH:MM DEBUG [vcf_om,68ae############################,cf##] [c.v.v.s.t.DynamicTrustManager,##-###-##] Error checking certificate chain CN=<FQDN>, OU=<Org_Unit>, O=<Organization>, L=<Locality>, ST=<State>, C=<Country>,CN=<Custom_CA_Name>, DC=admin, DC=ad, DC=<Domain_name>, DC=<com>,CN=<Domain> Root Certificate Authority, O=<Organization>, L=<Locality>, ST=<State>, DC=<Domain>, DC=<com>, C=<Country>.sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target at java.base/sun.security.validator.PKIXValidator.doBuild(PKIXValidator.java:439) at java.base/sun.security.validator.PKIXValidator.engineValidate(PKIXValidator.java:306) at java.base/sun.security.validator.Validator.validate(Validator.java:264) at java.base/sun.security.ssl.X509TrustManagerImpl.checkTrusted(X509TrustManagerImpl.java:242) at java.base/sun.security.ssl.X509TrustManagerImpl.checkServerTrusted(X509TrustManagerImpl.java:113)
The SDDC Manager database continues to reference an outdated certificate chain for the component. This discrepancy occurs because the new certificate was renewed or imported directly on the resource (e.g., NSX Manager, VxRail Manager, vRLSCM) rather than through the SDDC Manager.
The following steps can be used to update the SDDC Manager trust store with the new certificate.
vcf user and then issue the su - command to switch to the root user.KEY=$(cat /etc/vmware/vcf/commonsvcs/trusted_certificates.key)echo $KEYkeytool -importcert -alias <aliasname> -file <certificate_file_path> -keystore /etc/vmware/vcf/commonsvcs/trusted_certificates.store --storepass $KEY<aliasname> can be any name.<certificat_file_path> with the full path to the certificate file that was uploaded in the step 2a.keytool -importcert -alias <aliasname> -file <root_certificate_file_path> -keystore /etc/alternatives/jre/lib/security/cacerts --storepass changeit<aliasname> can be any name.<root_certificate_file_path> with the full path to the certificate file that was uploaded in the step 2b./opt/vmware/vcf/operationsmanager/scripts/cli/sddcmanager_restart_services.shkeytool -list -v -keystore /etc/vmware/vcf/commonsvcs/trusted_certificates.store -storepass $KEYFor NSX Manager Certificate -