VMware vCenter Server 7.0
VMware vCenter Server 8.0
An expired CSR (__MACHINE_CSR) within the VECS store MACHINE_SSL_CERT can be safely ignored as it does not affect the function of vCenter.
However, should it be needed to remove the CSR to avoid triggering the Certificate Status alarm, follow the below steps.
for store in $(/usr/lib/vmware-vmafd/bin/vecs-cli store list | grep -v TRUSTED_ROOT_CRLS); do echo "[*] Store :" $store; /usr/lib/vmware-vmafd/bin/vecs-cli entry list --store $store --text | grep -ie "Alias" -ie "Not After"; echo "===================================================="; done;
Example Output Snippet[*] Store : MACHINE SSL CERT
Alias : __MACHINE_CERT
Not After : [Date and Time]
Alias : __MACHINE_CSR
Not After : [Expired Date and Time]
/usr/lib/vmware-vmafd/bin/vecs-cli entry delete --store MACHINE_SSL_CERT --alias __MACHINE_CSR