Quantcast
Channel: Hey, Scripting Guy! Blog
Viewing all articles
Browse latest Browse all 3333

PowerTip: Test Certificate by Using PowerShell

$
0
0

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'


Viewing all articles
Browse latest Browse all 3333

Trending Articles