Skip to content

Instantly share code, notes, and snippets.

@isarns
Created June 3, 2021 14:50
Show Gist options
  • Save isarns/c92ede773daba81dc0be4a0ab3c26d2b to your computer and use it in GitHub Desktop.
Save isarns/c92ede773daba81dc0be4a0ab3c26d2b to your computer and use it in GitHub Desktop.
This PowerShell script test if your machine trust a certificate.
$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