10.3. Creating a Self-Signed Certificate

Getting a code-signing certificate provides us the best level of security, but that is not always the most practical thing to do. Requesting a certificate from a certification authority takes some time, as the CA has to run background checks and verify your identity before issuing a certificate—not to mention that a certificate is not cheap. Using the code signing tools and the infrastructure provided by PowerShell, we can achieve a good balance of security and practicality by issuing our own self-signed certificate. We can create a self-signed certificate and use it to sign scripts much in the same way as we would use a certificate issued by a third-party certification authority. Self-signed certificates ...

Get Pro Windows PowerShell now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.