Skip to content

Instantly share code, notes, and snippets.

@PlagueHO
Created January 10, 2017 08:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save PlagueHO/5690ece2cf245c903c849cb2d679cc8f to your computer and use it in GitHub Desktop.
Save PlagueHO/5690ece2cf245c903c849cb2d679cc8f to your computer and use it in GitHub Desktop.
Verify all certificates in a PFX Certificate Chain are valid and not expired
foreach ($Cert in $PFX) { "$($Cert.Subject) is valid: $($Cert.Verify())" }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment