In the environment where:
To validate ESXi host key, you can execute below commands on vCenter server:
Connect to the VCDB via the postgres shell. Refer Interacting with the vCenter Server Appliance 6.5/6.7/7.0/8.0 embedded vPostgres Database
psql -U postgres -d VCDB -h localhost
Identify the information for the host in question
select id, dns_name, crypto_state, crypto_key_id, crypto_key_provider_id, crypto_enable from vpx_host where dns_name like '%<esxi-host-fqdn>%';
VMware ESXi 8.x
VMware ESXi 7.x
VMware vCenter Server 8.x
VMware vCenter Server 7.x
The KMS user for vCenter is not the owner of some of the ESXi keys. Hence vCenter Server cannot retrieve keys from the key server.
If the key is no longer available on the key server, vCenter Server generates a virtual machine alarm. Also, an error message appears in the event log.
VirtualMachine.config.keyId.keyId.