After upgrading ESX to 9.1, the alarm "Host Requires Encryption Mode Enabled" is triggered.
Attempting to re-encrypt the ESX host from the vCenter UI fails with the error "Failed to enable encryption on host".
From the ESX /var/run/log/kmxa.log you may see an error similar to the following:
ERROR kmxa 2098763 [esx@4413 sub="Libs" opID="decrypt-########-####-####-####-###########-0"] Decrypt on provider <nkp> failed to decrypt ciphertext
From the vCenter Server /var/log/vmware/vpxd/vpxd.log file you may see an error similar to the following:
ERROR vpxd 89269 [vc@4413 sub="CryptoManager" opID="HeartbeatStartHandler-61e20c98-892c9fa-VMcrypt-OnHostConnected-3749e9a0"] Failed to enable encryption on host [vim.HostSystem:host-12,<esx-fqdn>]: N5Vmomi5Fault11SystemError9ExceptionE(Fault cause: vmodl.fault.SystemError
vCenter 9.1
EX 9.1
The cause of this issue is still under investigation and a case with Broadcom support should be opened for further review.
2. Enable the MOB interface for the vCenter Server by following the steps outlined in "The MOB is disabled", unable to access the vCenter MOB in VCF 9.0
3. Login to the mob using the following URL after updating the host ID accordingly: https://<vc-fqdn>/mob/?moid=host-**
https://<vc-fqdn>/mob/?moid=host-124. Under "Methods", find and select "ConfigureCryptoKey"
5. In the new window, update the providerid id field to match that of the Key Provider as seen in the vCenter UI.
6. Select "Invoke Method" at the bottom right. A "Method Invocation Result: void" is expected.
7. Login to vCenter and confirm the alert for encryption on the target ESX host is resolved. Additional confirmation can be done by running the following command on the target ESX host from an SSH session to ensure a new key has been applied: crypto-util keys getkidbyname "HostKey"