Created
June 3, 2021 14:50
-
-
Save isarns/c92ede773daba81dc0be4a0ab3c26d2b to your computer and use it in GitHub Desktop.
This PowerShell script test if your machine trust a certificate.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$certLoc=Get-ChildItem -Path C:\Path\To\Cert\Cert.cer | |
$cert=[System.Security.Cryptography.X509Certificates.X509Certificate2]::new($certLoc) | |
Test-Certificate $cert |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment