Skip to content

Improve PowerShell module signing validation#17

Merged
Marc-André Moreau (mamoreau-devolutions) merged 1 commit into
masterfrom
mamoreau-devolutions/verify-psign-signing
May 26, 2026
Merged

Improve PowerShell module signing validation#17
Marc-André Moreau (mamoreau-devolutions) merged 1 commit into
masterfrom
mamoreau-devolutions/verify-psign-signing

Conversation

@mamoreau-devolutions
Copy link
Copy Markdown
Contributor

Summary

  • Add pipeline-friendly Get-Module / Get-InstalledModule input support for Test-PsignModule and Protect-PsignModule
  • Remove legacy Get-PortableSignature / Set-PortableSignature compatibility aliases
  • Add portable pcert:\...\TrustedPublisher handling and make Test-PsignModule -RequireTrustedPublisher match Windows PowerShell publisher trust semantics
  • Add pcert:\...\Disallowed handling to model PowerShell's "Never run" behavior
  • Expand tests around Jordan Borean's PowerShell code-signing notes for leaf/root/intermediate publisher trust and chain-trust separation
  • Fix portable trust-chain edge cases for explicit anchors and self-signed signers
  • Document the Windows-to-pcert: TrustedPublisher/Disallowed mapping with a link to Jordan's notes

Validation

  • cargo test -p psign-authenticode-trust --locked
  • PowerShell\build.ps1 -Configuration Debug
  • Invoke-Pester PowerShell\tests\PortableCertStore.Provider.Tests.ps1, PowerShell\tests\TestPsignModule.Expanded.Tests.ps1, PowerShell\tests\PortableSignature.Compatibility.Tests.ps1 -Output Detailed

Add pipeline-friendly module validation and signing workflows, remove legacy portable aliases, and align portable TrustedPublisher handling with Windows PowerShell execution policy behavior. This adds TrustedPublisher and Disallowed handling in the file-backed pcert store, expands Jordan Borean parity coverage, and fixes portable trust-chain edge cases for explicit anchors.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@mamoreau-devolutions Marc-André Moreau (mamoreau-devolutions) merged commit e234e2e into master May 26, 2026
36 checks passed
@mamoreau-devolutions Marc-André Moreau (mamoreau-devolutions) deleted the mamoreau-devolutions/verify-psign-signing branch May 26, 2026 02:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant