May 4th, 2014

PowerTip: Test Certificate by Using PowerShell

Doctor Scripto
Scripter

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'

Author

The "Scripting Guys" is a historical title passed from scripter to scripter. The current revision has morphed into our good friend Doctor Scripto who has been with us since the very beginning.

0 comments

Discussion are closed.