Data Encipherment certificate is showing as expiring or expired on vCenter Server
search cancel

Data Encipherment certificate is showing as expiring or expired on vCenter Server

book

Article ID: 430608

calendar_today

Updated On:

Products

VMware vCenter Server VMware vSphere ESXi

Issue/Introduction

  • vSphere Client reports a Certificate Status alarm for vCenter Server if any certificate is close to its expiration date.
  • When checking the certificates using the vCert tool, using the option 1. Check current certificate status, it reports the data-encipherment certificate as expired or expiring soon.
  • Manually reviewing the certificates in the vSphere Endpoint Certificate Store (VECS) using the following command:
    # for i in $(/usr/lib/vmware-vmafd/bin/vecs-cli store list); do echo STORE $i; /usr/lib/vmware-vmafd/bin/vecs-cli entry list --store $i --text | egrep "Alias|Not After"; done
    confirms this:
    ..
    [*] Store : data-encipherment
    Alias : data-encipherment
    ..
    Not After: <Expiration Date>
    ..
    For Example:

Environment

  • VMware vCenter Server 7.x
  • VMware vCenter Server 8.x
  • VMware vCenter 9.x

Cause

The Data Encipherment certificate has reached or is approaching its configured expiration limit.
For context, this certificate is used by the vpxd service to encrypt confidential information during Guest OS Customization, such as pre-configured user passwords stored in guest customization specs.

Resolution

Note: Before making any changes, make sure to create a fresh backup or snapshot of the vCenter Server Appliance. If the vCSA is part of an Enhanced Linked Mode (ELM) Replication setup, be aware that offline snapshots of all ELM members are needed. See VMware vCenter in Enhanced Linked Mode pre-changes snapshot (online or offline) best practice for more information.

To remediate this issue, update the data-encipherment certificate and private key using the vCert tool:

  1. Download the latest version of the tool from the article vCert - Scripted vCenter expired certificate replacement.
  2. Run the tool with:
    # ./vCert.py
  3. Select the option 3. Manage certificates
  4. Next, select 6. Data Encipherment certificate
  5. Provide the name of the Single Sign-On (SSO) administrator account (e.g. [email protected]).
  6. Enter the password for the SSO administrator account.
  7. When prompted to Generate new Data encipherment certificate? [N], enter Y for "yes" to replace the certificate.
    Expected output:
  8. When prompted to restart the vmware-vpxd service, enter Y to proceed with the restart.

Additional Information

vCenter Server の Data Encipherment 証明書が期限切れ、または期限間近と表示される