List currently-valid certificates in get-cert-details.cmd #3
Loading…
Reference in a new issue
No description provided.
Delete branch "feature/cert-details-current-valid"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
What does this PR do?
Updates the
get-cert-details.cmdhelper to list certificates that are validas of now rather than using a hardcoded issue-date filter.
The previous version filtered on
NotBefore -gt '2026-05-01', a fixed date thatwould drift stale over time. The new version selects certificates whose validity
window contains the current moment (
NotBeforebefore now andNotAfterafternow), so the helper stays useful without editing.
Fixes #
How was this tested?
LocalMachine\Mywith their DnsNameList, validity dates, thumbprint, and subject.Checklist