PowerShell / PowerShellGallery

220 stars 59 forks source link

Install-Module AWS.Tools.IdentityManagement get some issue on certs? #196

Closed Saratoga6 closed 2 years ago

Saratoga6 commented 2 years ago

Hi I try to Install-Module AWS.Tools.IdentityManagement ( and another module yesterday ) and it return the below. I suspect this is not 'my' problem , yes?

PackageManagement\Install-Package : Authenticode issuer 'CN="Amazon Web Services, Inc.", OU=SDKs and Tools, O="Amazon Web Services, Inc.", L=Seattle, S=Washington, C=US, SERIALNUMBER=sssss, OID.1.3.6.1.4.1.311.60.2.1.2=Delaware, OID.1.3.6.1.4.1.311.60.2.1.3=US, OID.2.5.4.15=Private Organization' of the new module 'AWS.Tools.Common' with version '4.1.15.0' from root certificate authority 'CN=DigiCert Trusted Root G4, OU=www.digicert.com, O=DigiCert Inc, C=US' is not matching with the authenticode issuer 'CN="Amazon Web Services, Inc.", OU=AWS, O="Amazon Web Services, Inc.", L=Seattle, S=Washington, C=US' of the previously-installed module 'AWS.Tools.Common' with version '4.1.14.0' from root certificate authority 'CN=DigiCert Assured ID Root CA, OU=www.digicert.com, O=DigiCert Inc, C=US'. If you still want to install or update, use -SkipPublisherCheck parameter. At C:\Users\xxxx\Documents\WindowsPowerShell\Modules\PowerShellGet\2.2.5\PSModule.psm1:9711 char:34

ashovlin commented 2 years ago

We (AWS) recently rotated the certificate used to sign our modules. You must use the -SkipPublisherCheck parameter with Install-Module or Update-AWSToolsModule to upgrade to 4.1.15.0.

See https://github.com/aws/aws-tools-for-powershell/issues/232 for more information.

klementi commented 2 years ago

This issue is announced/explained here https://github.com/aws/aws-tools-for-powershell/issues/232, sorry for the inconvenience