Contact Info

Crumbtrail » Administration » Powershell » Powershell 3.0 » Test-Certificate

Test-Certificate - Powershell 3.0 CmdLet

ActiveXperts Network Monitor ships with integrated Powershell scripts to monitor complex network. The scripts run out of the box
Download the ActiveXperts Network Monitor FREE version now »


Short description
Verifies a certificate according to the input parameters.

Test-Certificate [-Cert] <Certificate> [-AllowUntrustedRoot [<SwitchParameter>]] [-DNSName <String>] [-EKU <String>] [-
Policy <TestCertificatePolicy>] [-User [<SwitchParameter>]] [<CommonParameters>]

The Test-Certificate cmdlet verifies a certificate according to input parameters. The revocation status of the certific
ate is verified by default. If the AllowUntrustedRoot parameter is specified, then a certificate chain is built but an 
untrusted root is allowed. Other errors are still verified against in this case, such as expired. If the DNSName parame
ter is used, then the DNS subject alternative name is used to verify SSL policy. If the EKU parameter is used, then the
 specified application policy object identifiers are used to verify the chain. If the User parameter is used, then the 
specified user context is used is to build and verify the chain.

Delegation may be required when using this cmdlet with Windows PowerShell® remoting and changing user configuration.