Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug with Install-Module failing if authenticode check fails #65

Open
3 tasks done
alerickson opened this issue Feb 9, 2024 · 1 comment
Open
3 tasks done

Bug with Install-Module failing if authenticode check fails #65

alerickson opened this issue Feb 9, 2024 · 1 comment

Comments

@alerickson
Copy link
Member

alerickson commented Feb 9, 2024

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

@alerickson alerickson changed the title Bug with Get-InstalledScript and Uninstall-Script Bug with Install-Module failing if authenticode check fails Feb 9, 2024
@alerickson
Copy link
Member Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant