After changing the system board with a Trusted Platform Module (TPM), an error message appears within the vSphere Client or on an ESXi host. The affected host is part of a vSAN cluster. The following error displays regarding the TPM endorsement key:
The new host TPM endorsement key doesn't match the one stored in the DB
A mismatch exists between the key value generated by the new TPM and the key value stored in the vCenter Server database (VCDB). The VCDB stores the TPM endorsement key under the VPX_HOST table. This mismatch causes the host in the vSAN cluster to report the validation error.
The following steps clear the outdated TPM keys from the vCenter Server PostgreSQL database and register the newly generated TPM keys.
service-control --stop vpxd/opt/vmware/vpostgres/current/bin/psql -U postgres -d VCDB -h localhost -c "select ID,DNS_NAME,endorsement_key,attestation_identity_key from VPX_HOST;"/opt/vmware/vpostgres/current/bin/psql -U postgres -d VCDB -h localhost -c "select id,dns_name,endorsement_key,attestation_identity_key from VPX_HOST WHERE dns_name = 'FQDN_of_issued_host.domain';"endorsement_key and attestation_identity_key fields for the affected host:/opt/vmware/vpostgres/current/bin/psql -U postgres -d VCDB -h localhost -c "update VPX_HOST set endorsement_key='', attestation_identity_key='' where id = <Host_ID_from_step_6>;"/opt/vmware/vpostgres/current/bin/psql -U postgres -d VCDB -h localhost -c "select ID,DNS_NAME,endorsement_key,attestation_identity_key from VPX_HOST where id = <Host_ID_from_step_6>;"service-control --start vpxd/opt/vmware/vpostgres/current/bin/psql -U postgres -d VCDB -h localhost -c "select ID,DNS_NAME,endorsement_key,attestation_identity_key from VPX_HOST where id = <Host_ID_from_step_6>;"For alternative options in non-vSAN clusters, refer Error: "The new host TPM endorsement key doesn't match the one stored in the DB" appears within the vSphere Client".