Chapter 21. Signing your script

Another habit of highly effective PowerShell toolmakers is script signing. Many people think this is too hard or not worth the effort. Obviously, we think otherwise, or we wouldn’t have written this chapter! Even if you think your tools will never leave your company, signing your script, along with using source control, is a very good thing.

21.1. Why sign your scripts?

Why should you bother with code signing? At its most basic, a signed script authenticates the person who wrote it. This doesn’t mean the script is safe or good to run. But if it’s bad and signed, you can at least track down the author. The other reason for signing is to verify script integrity. In other words, has the code been modified since ...

Get Learn PowerShell Scripting in a Month of Lunches now with the O’Reilly learning platform.

O’Reilly members experience live online training, plus books, videos, and digital content from nearly 200 publishers.