PowerShell: Get Certificates which are about to expired

I got a little error message in the EvenLog:

"

Certificate for local system with Thumbprint XX  is about to expire or already expired.

"

And this is how I found the certificate:

SharePoint 2013: Distributed Cache

SharePoint 2013: Change Distributed Cache Service Account