VMware Cloud Community
wreedMH
Hot Shot
Hot Shot

Script to check all vCenter certs for expiry?

Does anyone have a script that will check all vCenter certs for expiry date and report?

Reply
0 Kudos
2 Replies
wreedMH
Hot Shot
Hot Shot

Found it

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

Ajay1988
Expert
Expert

That will get all vecs certs except STS cert. For STS check   https://kb.vmware.com/s/article/79248 

If you think your queries have been answered
Mark this response as "Correct" or "Helpful".

Regards,
AJ
Reply
0 Kudos