May 3rd, 2014

PowerTip: Use PowerShell to Create Self-Signed Certificate

Doctor Scripto
Scripter

Summary: Use Windows PowerShell in Windows 8.1 to create a self-signed certificate.

Hey, Scripting Guy! Question How can I create a self-signed certificate in Windows 8.1 for testing purposes?

Hey, Scripting Guy! Answer Use the New-SelfSignedCertificate function from the PKI module,
          and specify DNSName and a certificate store location:

New-SelfSignedCertificate -DnsName www.nwtraders.com -CertStoreLocation Cert:\LocalMachine\My

Note  This function requires that you start the Windows PowerShell console with admin rights.

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.

Feedback