CertificateStatusAlarm - There are certificate that expired or about to expire/Certificate Status Change Alarm Triggered on VMware vCenter Server
search cancel

CertificateStatusAlarm - There are certificate that expired or about to expire/Certificate Status Change Alarm Triggered on VMware vCenter Server

book

Article ID: 318973

calendar_today

Updated On:

Products

VMware vCenter Server

Issue/Introduction

This article will help to remove the Certificate Status error by identifying the expired/expiring certificates and direct users to the right articles to replace the certificate.

  • ESXi host alarm certificate status
  • Monitor or track SSL, SMS and, STS certificate expiration
  • There is an alarm in the vSphere Client for Certificate Status
Alarm alarm.CertificateStatusAlarm
There are certificate that expired or about to expire
  • vCenter - /var/log/vmware/vpxd/vpxd.log will show the following message:
2019-05-20T16:22:47.739Z warning vpxd[30469] [Originator@6876 sub=Main opID=CheckCertificateExpiry-57e82b11] Certificate [Subject: <Certificate Subject>] from store <VECS Store Name> will expire on 2019-07-14 19:44:56.000
2019-05-20T16:22:47.750Z warning vpxd[30469] [Originator@6876 sub=Main opID=CheckCertificateExpiry-57e82b11] Certificate [Subject: <Certificate Subject>] from store <VECS Store Name> will expire on 2019-07-14 19:44:56.000

Cause

vCenter Server monitors all the certificates within the VMware Endpoint Certificate Store. It triggers a Certificate Status alarm within the vCenter Server if any certificate is close to its expiration date.

The certificate status alarm settings can be configured using the following vCenter Server advanced settings:
  • vpxd.cert.threshold
  • vpxd.certmgmt.certs.hardThreshold
  • vpxd.certmgmt.certs.pollIntervalDays

Resolution

Review the certificate expiration values within each Keystore of the VMware Endpoint Certificate Store (VECS) to determine which certificate is close to its expiration date or that has already expired.

  1. Follow steps in Determining expired SSL certificates in vCenter Server and ESXi 6.x and 7.0.x
  2. Perform one of the below options to remove the certificates based on where an expired or expiring certificate is identified in VMware Endpoint Certificate Store:

MACHINE_SSL_CERT VECS

Solution Users VECS - machine, vsphere-webclient, vpxd, vpxd-extension

SMS VECS

TRUSTED_ROOTS VECS

Data-encipherment VECS

BACKUP_STORE VECS

  1. Identify the alias of the expired certificate by executing the below command:
/usr/lib/vmware-vmafd/bin/vecs-cli entry list --store BACKUP_STORE --text
  1. Export the certificate as a backup copy.
/usr/lib/vmware-vmafd/bin/vecs-cli entry getcert --store BACKUP_STORE --alias <Alias Name> --output <output folder>
 
Example
/usr/lib/vmware-vmafd/bin/vecs-cli entry getcert --store BACKUP_STORE --alias bkp___MACHINE_CERT --output /certificates/old_machine.crt
  1. Delete the Expired certificate from VECS Store.
/usr/lib/vmware-vmafd/bin/vecs-cli entry delete --store BACKUP_STORE --alias <Alias Name> -y

Example
/usr/lib/vmware-vmafd/bin/vecs-cli entry delete --store BACKUP_STORE --alias bkp___MACHINE_CERT -y

 
Note

Additional Information

For STS certificate Expired/Expiring/Signing Certificate Note: STS/Signing Certificate is not stored in VECS store, hence not covered in vCenter Server alarms. Please verify this Certificate by following the above steps before proceeding with the replacement of other Certificates stored in VECS store as replacement of these certificates will fail if STS certificate is already expired.