Skip to content

Add automatic AuthRoot cache for portable trust#24

Merged
Marc-André Moreau (mamoreau-devolutions) merged 1 commit into
masterfrom
mamoreau-devolutions-build-validate-signature
Jun 25, 2026
Merged

Add automatic AuthRoot cache for portable trust#24
Marc-André Moreau (mamoreau-devolutions) merged 1 commit into
masterfrom
mamoreau-devolutions-build-validate-signature

Conversation

@mamoreau-devolutions

Copy link
Copy Markdown
Contributor

Summary

  • Add automatic Microsoft AuthRoot CAB caching for portable trust verification when no explicit anchors are supplied, with a 7-day stale refresh window and environment overrides.
  • Route supported --mode portable verify calls through portable trust verification by default when auto trust is enabled, and align the PowerShell module cache behavior.
  • Normalize exact duplicate certificates in Authenticode SignedData.certificates bags so Windows-valid Azure Artifact Signing signatures parse in the strict Rust CMS stack.

Validation

  • cargo build --locked
  • cargo clippy --workspace --all-targets --locked
  • cargo test -p psign-sip-digest pkcs7_wire --locked
  • cargo test -p psign-authenticode-trust --lib --locked
  • cargo test -p psign-authenticode-trust authroot_cache --locked
  • dotnet build dotnet/Devolutions.Psign.PowerShell/Devolutions.Psign.PowerShell.csproj
  • bash scripts/linux-portable-validation.sh
  • psign-tool --mode portable verify tursodb.exe with a fresh AuthRoot cache

Known baseline: full cargo test --workspace --locked still fails on the existing tests/fixtures/msix-minimal/AppxManifest.xml fixture manifest-size mismatch.

Add a portable AuthRoot cache resolver with stale refresh and environment overrides, wire it into portable trust verification, and align the PowerShell module cache behavior.

Normalize exact duplicate certificates in Authenticode SignedData certificate bags so Windows-valid Azure Artifact Signing signatures parse in the strict Rust CMS stack.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@mamoreau-devolutions Marc-André Moreau (mamoreau-devolutions) merged commit 5fa8cb2 into master Jun 25, 2026
36 checks passed
@mamoreau-devolutions Marc-André Moreau (mamoreau-devolutions) deleted the mamoreau-devolutions-build-validate-signature branch June 25, 2026 18:13
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