PowerShellGetv2 icon indicating copy to clipboard operation
PowerShellGetv2 copied to clipboard

Unable to SkipPublisherCheck when installing modules using RequireModules in psd1 file

Open kduvzc opened this issue 3 years ago • 0 comments

Amazon has recently changed the root certification authority used to sign the AWSPowershell.NetCore package: version 4.0.5.0 root certification authority is VeriSign Universal Root Certification Authority while version 4.1.2.0 uses Amazon Web Services, Inc. . When PowerShellGet attempts to install the newer 4.1.2.0 onto a machine which already has version 4.0.5.0 installed, it fails with:

Authenticode issuer 'CN=DigiCert Assured ID Root CA, OU=www.digicert.com, O=DigiCert Inc, C=US' of the new module 'AWSPowerShell.NetCore' with version '4.1.2.0' is not matching with the authenticode issuer 'CN=VeriSign Universal Root Certification Authority, OU="(c) 2008 VeriSign, Inc. - For authorized use only"

suggesting us to execute the Install-Module with the -SkipPublisherCheck flag. Unfortunately we're relying on the RequiredModules property in a psd1 file to install the modules. Is there a way to solve this? Thank you.

kduvzc avatar Nov 25 '20 11:11 kduvzc