liveBook · Manning

Certification authority

As explained in Learn PowerShell Scripting in a Month of Lunches, Second Edition: Write and organize scripts and tools

A certificate authority is a trusted entity that issues and signs digital certificates after validating certificate requests.

A certification authority (CA) is a trusted entity that validates identities, embeds them in digital certificates, and signs those certificates. Trusting the CA lets a system trust certificates it issues. section 21.2

Choose the issuing model according to where the signed code will be used:

  • Use a commercial CA when distributing tools outside the organization; expect organizational ownership and substantial identity verification. section 21.2
  • Use an internal CA through PKI or Active Directory Certificate Services when domain members need to trust organizational code. section 21.2
  • Use a self-signed certificate for personal development or testing, but replace it before distributing code to others. section 21.2
PS Cert:\> New-SelfSignedCertificate -type CodeSigningCert -Subject
"CN=James Petty" -CertStoreLocation Cert:\CurrentUser\My\ -testroot
   PSParentPath: Microsoft.PowerShell.Security\Certificate::CurrentUser\My
 
Thumbprint                                 Subject     EnhancedKeyUsageList
----------                                 -------             -----------
F33E9122D73BE220117339E9647F0037F3F875A6  CN=James Petty       Code Signing
 

Create a test code-signing certificate with the PowerShell PKI module and store it in the current user's certificate store. section 21.4.1

How Learn PowerShell Scripting in a Month of Lunches, Second Edition: Write and organize scripts and tools covers it

How deep it goes
Explains commercial, internal, and self-signed issuance choices, but defers detailed PKI administration.
Examples
Uses commercial vendors, Active Directory Certificate Services, and a PowerShell self-signed certificate command.
What it assumes
Assumes basic certificate and script-signing familiarity while refreshing certificate trust and key-pair concepts.
What you can do after
Apply the PowerShell PKI module to create a test certificate and select an appropriate CA for deployment.
How it connects
Connects certification authorities with digital certificates, code signing, public key infrastructure, Authenticode, and Group Policy.

Also explained in

Compare how 8 books explain certification authority →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Learn PowerShell Scripting in a Month of Lunches, Second Edition: Write and organize scripts and tools. The section links point to the parts of the book it draws on.