PowerShell / PowerShellGet

This module provide functions used with PowerShellGet v3 to provide compatibility with scripts expecting PowerShellGet v2

Home Page:https://www.powershellgallery.com/packages/PowerShellGet

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Bug with Install-Module failing if authenticode check fails

alerickson opened this issue · comments

Prerequisites

  • Write a descriptive title.
  • Make sure you are able to repro it on the latest version
  • 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

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