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

Authenticode Signature Invalid #170

Closed
ShawnMSkyline opened this issue Mar 14, 2023 · 1 comment · Fixed by #171
Closed

Authenticode Signature Invalid #170

ShawnMSkyline opened this issue Mar 14, 2023 · 1 comment · Fixed by #171
Assignees
Labels
bug Something isn't working documentation Improvements or additions to documentation KNetPS KNetPS related issue

Comments

@ShawnMSkyline
Copy link

Describe the bug
When attempting to install the module in Powershell, I get the following error below.

Command
Install-Module -Name MASES.KNetPS

Response
"PackageManagement\Install-Package : The module 'MASES.KNetPS' cannot be installed or updated because the authenticode signature of the file 'MASES.KNetPS.cat'
is not valid."

To Reproduce
Steps to reproduce the behavior:

  1. Run Install-Module -Name MASES.KNetPS from powershell

Expected behavior
Installs the module like normal

Screenshots
PS C:\Windows\system32> Install-Module -Name MASES.KNetPS
PackageManagement\Install-Package : The module 'MASES.KNetPS' cannot be installed or updated because the authenticode signature of the file 'MASES.KNetPS.cat'
is not valid.
At C:\Program Files\WindowsPowerShell\Modules\PowerShellGet\2.2.5\PSModule.psm1:9711 char:34

  • ... talledPackages = PackageManagement\Install-Package @PSBoundParameters
  •                  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    
    • CategoryInfo : InvalidOperation: (Microsoft.Power....InstallPackage:InstallPackage) [Install-Package], Exception
    • FullyQualifiedErrorId : InvalidAuthenticodeSignature,ValidateAndGet-AuthenticodeSignature,Microsoft.PowerShell.PackageManagement.Cmdlets.InstallPackage

PS C:\Windows\system32> Install-Module -Name MASES.KNetPS -RequiredVersion 1.4.4
PackageManagement\Install-Package : The module 'MASES.KNetPS' cannot be installed or updated because the authenticode signature of the file 'MASES.KNetPS.cat'
is not valid.
At C:\Program Files\WindowsPowerShell\Modules\PowerShellGet\2.2.5\PSModule.psm1:9711 char:34

  • ... talledPackages = PackageManagement\Install-Package @PSBoundParameters
  •                  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    
    • CategoryInfo : InvalidOperation: (Microsoft.Power....InstallPackage:InstallPackage) [Install-Package], Exception
    • FullyQualifiedErrorId : InvalidAuthenticodeSignature,ValidateAndGet-AuthenticodeSignature,Microsoft.PowerShell.PackageManagement.Cmdlets.InstallPackage

Desktop (please complete the following information):

  • OS: Windows Server 2016 Standard
  • Version: 1607
  • PowerShell Version:
    PS C:\Windows\system32> $PSVersionTable

Name Value


PSVersion 5.1.14393.5582
PSEdition Desktop
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0...}
BuildVersion 10.0.14393.5582
CLRVersion 4.0.30319.42000
WSManStackVersion 3.0
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1

Additional context
Add any other context about the problem here.

@mariomastrodicasa mariomastrodicasa added bug Something isn't working KNetPS KNetPS related issue labels Mar 14, 2023
@masesdevelopers
Copy link
Contributor

@ShawnMSkyline the instructions page shall be updated while the issue you reported is solved. The command to be issued in the PS shell is the following one and it works on both PowerShell Desktop and PowerShell Core:

Install-Module -Name MASES.KNetPS -SkipPublisherCheck

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working documentation Improvements or additions to documentation KNetPS KNetPS related issue
Projects
None yet
3 participants