Monthly Archive


Certificate Lifespan

Eileen has posted about a fairly long life span for one of the certificates on her machine -

If you want to find the certificate that will last the longest on your machine – PowerShell is there for you

Get-ChildItem -Path Cert: -Recurse | Sort Notafter -Descending | Select -First 1 | Format-List

use –recurse to dir through all of the certificates – the certificate store is exposed as a drive by PowerShell.  Sort on the Notafter date & select the first.  Format as a list to see all the properties.

Quicker than opening a GUI.


Leave a Reply