PowerTip: Test Certificate by Using PowerShell

Doctor Scripto

Summary: Use Windows PowerShell in Windows 8.1 to test a certificate.

Hey, Scripting Guy! Question How can I test a certificate to ensure that it is OK in Windows 8.1?

Hey, Scripting Guy! Answer Open the Windows PowerShell console with admin rights, use the Get-ChildItem cmdlet to retrieve certificates
          using the certificate provider, pipe the certificates to the Test-Certificate, and specify the test to run.
          The following command tests a certificate for SSL use with the specified DNS name:

Get-ChildItem -Path Cert:\LocalMachine\my | Test-Certificate -Policy SSL –DNSName 'dns=nwtraders.com'


Discussion is closed.

Feedback usabilla icon