Message: Failed to replace certificate for [redacted] due to:Remediation Message:Reference Token:Cause:
operationsmanager.log, the failure is recorded as an API exception; however, the specific error details are not provided.YYYY-MM-DDTHH:MM:SS] ERROR [vcf_om,#######################] [c.v.v.c.s.SddcManagerCertificatePluginService,om-exec-24] SDDC Manager Certificate Replacement failed:com.vmware.cloud.foundation.rest.commonsvcs.runtime.ApiException:at com.vmware.cloud.foundation.rest.commonsvcs.runtime.ApiClient.handleResponse(ApiClient.java:788)at com.vmware.cloud.foundation.rest.commonsvcs.runtime.ApiClient.execute(ApiClient.java:708)/var/log/vmware/commonsvcs/vcf-commonsvcs.log file contains additional details that help identify the root cause of the failure.[YYYY-MM-DDTHH:MM:SS] INFO [common,684#######################4513e8,aa7e] [c.v.e.s.a.u.utils.DnsResolutionUtils,http-nio-127.0.0.1-7100-exec-6] Dns name <_sddc_fqdn>, resolved to IPs [127.0.0.1][YYYY-MM-DDTHH:MM:SS] ERROR [common,684#######################4513e8,aa7e] [c.v.e.s.a.u.utils.SslCertValidator,http-nio-127.0.0.1-7100-exec-6] Certificate validations failedjava.security.cert.CertificateException: Hostname in CN field [_sddc_fqdn] could not be resolved to an IP address of the SDDC manager [###.###.###.###] at com.vmware.evo.sddc.appliance.utilities.utils.SslCertValidator.validateCNAndSANDnsName(SslCertValidator.java:295) at com.vmware.evo.sddc.appliance.utilities.utils.SslCertValidator.validateCertChain(SslCertValidator.java:262) at com.vmware.evo.sddc.appliance.utilities.utils.SslCertValidator.validateCertsInChain(SslCertValidator.java:142) at com.vmware.evo.sddc.appliance.utilities.utils.SslCertValidator.performERICertValidations(SslCertValidator.java:133)VCF 5.2.x.x
Steps to perform before retrying the certificate replacement:
vcf user and switch to root./etc/hosts file:cp /etc/hosts /etc/hosts.bakvi /etc/hosts127.0.0.1 localhost.localdomain127.0.0.1 localhost127.0.0.1 photon# End /etc/hosts (network card version)#127.0.0.1 FQDN_of_SDDC manager
/etc/hosts file must be updated by uncommenting the entry that maps the <FQDN_of_SDDC_Manager> to 127.0.0.1.Alternate Solution(if the above steps did not resolve the issue):
vcf user and switch to root./etc/hosts file:cp /etc/hosts /etc/hosts.bakvi /etc/hosts/etc/hosts file(Format: <IPv4> <FQDN> <Alias/Shortname>) above the local host entry192.x.x.x example.domain.com example127.0.0.1 localhost