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:
or
python fixcerts_3_2.py replace --certType smsReset to Green on the alarm action on vSphere client