Repository navigation
Open
Description
- The code signing certificate used to sign PSScriptAnalyzer version 1.25.0 has expired and the PSScriptAnalyzer.psm1 does not contain a RFC 3161 timestamp (which could be used to confirm the file was created before the certificate expiration). This makes it difficult to "clean-source" PSScriptAnalyzer before integrating it
Steps to reproduce
- Open the ".signature.p7s" file contained in the nupkg package
- In "certmgr", browse to the "Microsoft Corporation" code signing certificate and open it
- You will see the certificate has expired.
Expected behavior
The code signing chain is intact and valid
Actual behavior
If an unexpected error was thrown then please report the full error details using e.g. $error[0] | Select-Object *
Environment data
> $PSVersionTable
Name Value
---- -----
PSVersion 5.1.26100.9444
PSEdition Desktop
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0...}
BuildVersion 10.0.26100.9444
CLRVersion 4.0.30319.42000
WSManStackVersion 3.0
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1
> (Get-Module -ListAvailable PSScriptAnalyzer).Version | ForEach-Object { $_.ToString() }
PSScriptAnalyzer).Version: 1.24.0Metadata
Metadata
Assignees
Labels
No labels
Activity
riju568 commentedon Nov 18, 2026
Proposed Solution
That said, the problem was that the release pipeline for version 1.25.0 signed the module files using a certificate that was already expired at the time of signing, or with an invalid RFC 3161 timestamp server configuration set during signing. Because an RFC 3161 timestamp was not present, current code-signing validation considers the signature to have become invalid after the underlying certificate expired.
In order to fix this bug and also to avoid it being reintroduced in any of the subsequent releases, the above-mentioned maintainers should follow:
1. Hotfix for Version 1.25.0 (or Release 1.25.1)
Install a Valid Certificate:* Sign module assemblies and .psm1 and .psd1 files with a current, non-expired code signing certificate.
For instance, when applying Set-Authenticode Signature within the pipeline, confirm that you include the -Time Stamp Server parameter:
MichaelLundSaxo commentedon Nov 19, 2026
Tanmoy Samanta (@riju568): Thanks for responding and insights. I hope this will be resolved soon.
bergmeister commentedon Nov 23, 2026
Michael Lund (@MichaelLundSaxo) Tanmoy Samanta (@riju568) Thanks for raising it. Can you describe please how this affects you and what impact is?
Install-Moduledoes not raise an issue as it likely looks only at root certificate, which is still valid so keen to hear about your use casecc Patrick Meinecke (@SeeminglyScience)
MichaelLundSaxo commentedon Nov 23, 2026
We get the *.nupkg and run it through a pipeline which "clean-sources" it. Part of that process is validating the entire certificate chain. Since the root code signing certificate is expired an no RFC timestamp exists, we cannot "clean-source" it, and that essentially means we are not allowed to use this version of PSScriptAnalyzer.
Installing it by "Install-Module" is not an option, since we are working in environments that are locked down and prevents us from getting packages directly this way.
So to sum it up; we cannot use PSScriptAnalyzer if we cannot verify that the certificate chain is intact and that the source has been signed by certificates that we trust.
Hope that makes sense :)