Error Code: esx.cert.replacement.error
esx.cert.replacement.error
Certificate task REPLACE_CERTIFICATE for <hostname> has failed. Error message: Unexpected
error during certificate replacement for for bulkTakld = #######-####-####-####-############, subTaskld = #######-####-####-####-############ on ESXi host <hostname>. Cannot change the host configuration.
or
Error Code : 'LCMREPLACECERTSERROR'Cannot change the host configuration. The generated private key does not match with the public key from the incoming certificate.Operation failed. Cannot change the host configuration. Low-level system error. See logs for details.
In(166) Hostd[ID]: [Originator@6876 sub=Vimsvc.TaskManager opID=OP_ID sid=SESSION_ID user=USER:DOMAIN\USER] Task Created : haTask -- vim.host.CertificateManager.installServerCertificate-6498710
Er(163) Hostd[ID]: [Originator@6876 sub=Vimsvc.CertMgr opID=OP_ID sid=SESSION_ID user=USER: DOMAIN\USER] Failed to get private key: error: 1E08010C: DECODER routines :: unsupported
In(166) Hostd[ID]: [Originator@6876 sub=AdapterServer opID=OP_ID sid=SESSION_ID user=USER: DOMAIN\USER] AdapterServer caught exception; << GUID, <TCP 'IP_ADDRESS: PORT'>, <TCP 'IP_ADDRESS : PORT'>>, ha-certificate-manager, vim.host.CertificateManager.installServerCertificate, <vim. version.v8_0_3_0, internal, 8.0.3.0>, [HEX_ADDRESS]>, N3Vim5Fault15HostConfigFault9ExceptionE (Fault cause: vim. fault. HostConfigFault
In(166) Hostd[ID] : -- > )
In(166) Hostd[ID]: -- > [context]ENCODED_DATA[/context]
In(166) Hostd[ID]: [Originator@6876 sub=Vimsvc.TaskManager opID=OP_ID sid=SESSION_ID user=USER:DOMAIN\USER] Task Completed : haTask -- vim.host. CertificateManager. installServerCertificate-6498710 Status errorValidating the private key generated on the ESXi host during the Certificate Signing Request (CSR) process is missing at path /etc/vmware/ssl on host
VCF Operations 9.x
VMware vSphere ESXi 8.x
The private key generated on the ESXi host during the Certificate Signing Request (CSR) creation is missing or has been overwritten, preventing the certificate import sequence from validating the newly issued certificate.