PowerShell Toolkit code signing certificate is expired
Applies to
- PowerShell Toolkit (PSTK)
- Windows platform
Issue
- Code signing certificate on PSTK <ver> is expired
- This impacts when PSTK module execution policy is set to AllSigned
- This can be encountered while importing PSTK <ver> module -OR- when executing PSTK <ver> install script
- Example 1: Importing PSTK module
Error: The file was skipped because of the following validation exception: file <file-name> type.ps1xml cannot be loaded. the file <file-name> is not digitally signed. you cannot run this script on the current system.
- Example 2: Executing PSTK install script
Error: A required certificate is not within its validity period when verifying against the current system clock or the timestamp in the signed file.