PowerShellGet icon indicating copy to clipboard operation
PowerShellGet copied to clipboard

Bug with Install-Module failing if authenticode check fails

Open alerickson opened this issue 1 year ago • 1 comments

Prerequisites

  • [X] Write a descriptive title.
  • [X] Make sure you are able to repro it on the latest version
  • [X] Search the existing issues.

Steps to reproduce

Install-Module -Name newtestmodule -Repository PSGallery -Verbose -Debug

Expected behavior

Should write verbose messaging about catalog and authenticode checks, even if they fail. Default behavior of PowerShellGet 2.2.5 is to always check both.

Actual behavior

Install-PSResource does not by default check either. There is an -AuthenticodeCheck flag but this will fail if the authenticode check fails.

One proposal is to have the PowerShellGet (compat layer) not authenticode check.
Another is to add a parameter (such as -Force) to continue installing even if authenticode check fails.

Error details

No response

Environment data

All

Version

3.0.23-beta23

Visuals

No response

alerickson avatar Feb 09 '24 22:02 alerickson

Don't add -AuthenticodeCheck in compat layer, but add authenticode validation in comat.

alerickson avatar Feb 13 '24 19:02 alerickson