SMS certificate in VECS has expired' alarm is found to have been triggered under the Summary tab of the vCenter Server instance, as illustrated below:for i in $(/usr/lib/vmware-vmafd/bin/vecs-cli store list); do echo STORE $i; sudo /usr/lib/vmware-vmafd/bin/vecs-cli entry list --store $i --text | egrep "Alias|Not After"; done
Sample Output:
[*] Store : MACHINE_SSL_CERTAlias : __MACHINE_CERT Not After : MM DD HH:MM:SS YYYY GMT[*] Store : TRUSTED_ROOTSAlias : #### Not After : MM DD HH:MM:SS YYYY GMTAlias : #### Not After : MM DD HH:MM:SS YYYY GMT[*] Store : machineAlias : machine Not After : MM DD HH:MM:SS YYYY GMT[*] Store : vsphere-webclientAlias : vsphere-webclient Not After : MM DD HH:MM:SS YYYY GMT[*] Store : vpxdAlias : vpxd Not After : MM DD HH:MM:SS YYYY GMT[*] Store : vpxd-extensionAlias : vpxd-extension Not After : MM DD HH:MM:SS YYYY GMT[*] Store : APPLMGMT_PASSWORDAlias : location_password_default[*] Store : data-enciphermentAlias : data-encipherment Not After : MM DD HH:MM:SS YYYY GMT[*] Store : SMSAlias : sms_self_signed Not After : MM DD HH:MM:SS YYYY GMT <------This date would have already passedAlias : sps-extension[*] Store : hvcAlias : hvc Not After : MM DD HH:MM:SS YYYY GMT[*] Store : wcpAlias : wcp Not After : MM DD HH:MM:SS YYYY GMT
This alarm is triggered when one or more certificates within the SMS certificate store have reached or passed their expiration date.
To resolve this issue, follow the below steps:
1. Take a snapshot on the vCenter Server (For Linked vCenter Servers, refer to VMware vCenter in Enhanced Linked Mode pre-changes snapshot (online or offline) best practice)
2. Renew the expired SMS certificate by using the following method
vCert Script (as highlighted on the alarm) with options:
3. Select the Reset to Green on the alarm action on vSphere client
4. Remove the snapshot.