aws / aws-tools-for-powershell

The AWS Tools for PowerShell lets developers and administrators manage their AWS services from the PowerShell scripting environment.
Apache License 2.0
235 stars 77 forks source link

'Exception: Error validating manifest signature' on Windows #267

Closed Clifra-Jones closed 2 years ago

Clifra-Jones commented 2 years ago

Describe the bug

Getting this trying to install or update any module. I have updated the installer module to 1.0.2.4. Getting this is on Windows. I updated all my modules successfully yesterday on Fedora Linux 35.

Expected Behavior

Expected installati9n and update to be successful.

Current Behavior

PS D:\Users\cwilliams> Install-AWSToolsModule AWS.Tools.EC2

Confirm Are you sure you want to perform this action? Performing the operation "Install-AWSToolsModule" on target "AWS Tools version 4.1.96". [Y] Yes [A] Yes to All [N] No [L] No to All [S] Suspend [?] Help (default is "Y"): y Exception: Error validating manifest signature for AWS.Tools.EC2

Reproduction Steps

Run Install-AWSToolsModule {modulename}

Possible Solution

No response

Additional Information/Context

No response

AWS Tools for PowerShell version used

AWS.Tools.Installer 1.0.2.4

PowerShell version used

Major Minor Build Revision


7 2 3 -1

Operating System and version

Windows Server 2019

ashishdhingra commented 2 years ago

Hi @Clifra-Jones,

Good morning.

Somehow I'm unable to reproduce the issue on the fresh Windows Server 2019 instance.

PowerShell 7.2.4
Copyright (c) Microsoft Corporation.

https://aka.ms/powershell
Type 'help' to get help.

PS C:\Program Files\PowerShell\7> Install-Module -Name AWS.Tools.Installer

Untrusted repository
You are installing the modules from an untrusted repository. If you trust this repository, change its
InstallationPolicy value by running the Set-PSRepository cmdlet. Are you sure you want to install the
modules from 'PSGallery'?
[Y] Yes  [A] Yes to All  [N] No  [L] No to All  [S] Suspend  [?] Help (default is "N"): Y
PS C:\Program Files\PowerShell\7> Install-AWSToolsModule AWS.Tools.EC2

Confirm
Are you sure you want to perform this action?
Performing the operation "Install-AWSToolsModule" on target "AWS Tools version 4.1.96.0".
[Y] Yes  [A] Yes to All  [N] No  [L] No to All  [S] Suspend  [?] Help (default is "Y"): Y
Installing module AWS.Tools.EC2 version 4.1.96.0
PS C:\Program Files\PowerShell\7> Get-Module -ListAvailable

    Directory: C:\Users\Administrator\Documents\PowerShell\Modules

ModuleType Version    PreRelease Name                                PSEdition ExportedCommands
---------- -------    ---------- ----                                --------- ----------------
Binary     4.1.96                AWS.Tools.Common                    Core,Desk {Clear-AWSHistory, Set-AWSH…
Binary     4.1.96                AWS.Tools.EC2                       Core,Desk {Add-EC2CapacityReservation…
Script     1.0.2.4               AWS.Tools.Installer                 Core,Desk {Uninstall-AWSToolsModule, …

    Directory: C:\program files\powershell\7\Modules

ModuleType Version    PreRelease Name                                PSEdition ExportedCommands
---------- -------    ---------- ----                                --------- ----------------
Manifest   7.0.0.0               CimCmdlets                          Core      {Get-CimAssociatedInstance,…
Manifest   1.2.5                 Microsoft.PowerShell.Archive        Desk      {Compress-Archive, Expand-A…
Manifest   7.0.0.0               Microsoft.PowerShell.Diagnostics    Core      {Get-WinEvent, New-WinEvent…
Manifest   7.0.0.0               Microsoft.PowerShell.Host           Core      {Start-Transcript, Stop-Tra…
Manifest   7.0.0.0               Microsoft.PowerShell.Management     Core      {Add-Content, Clear-Content…
Manifest   7.0.0.0               Microsoft.PowerShell.Security       Core      {Get-Acl, Set-Acl, Get-PfxC…
Manifest   7.0.0.0               Microsoft.PowerShell.Utility        Core      {Export-Alias, Get-Alias, I…
Manifest   7.0.0.0               Microsoft.WSMan.Management          Core      {Disable-WSManCredSSP, Enab…
Script     1.4.7                 PackageManagement                   Desk      {Find-Package, Get-Package,…
Script     2.2.5                 PowerShellGet                       Desk      {Find-Command, Find-DSCReso…
Script     7.0.0.0               PSDiagnostics                       Core      {Disable-PSTrace, Disable-P…
Script     2.1.0                 PSReadLine                          Desk      {Get-PSReadLineKeyHandler, …
Binary     2.0.3                 ThreadJob                           Desk      Start-ThreadJob

Here is the screenshot:

Screen Shot 2022-06-01 at 10 18 21 AM

May be it's an intermittent issue. Request you to retry again. You may try uninstalling the existing AWS PowerShell modules and then reinstalling from scratch.

Thanks, Ashish

github-actions[bot] commented 2 years ago

This issue has not received a response in 5 days. If you want to keep this issue open, please just leave a comment below and auto-close will be canceled.