Description
I encountered an error while trying to install the Strapper module. The installation process does not recognise the certificate and the publisher, and it prompts using the -SkipPublisherCheck parameter with the Install-Module command. Although the installation works with the -SkipPublisherCheck parameter, I am concerned about why this is necessary and why our certificate is not accepted.
Error Message
PackageManagement\Install-Package : The version '1.7.1.2' of the module 'Strapper' being installed is not catalog signed. Ensure that the version '1.7.1.2' of the module 'Strapper' has the catalog file 'Strapper.cat' and signed with the same publisher 'CN=SSL.com Root Certification Authority RSA, O=SSL Corporation, L=Houston, S=Texas, C=US' as the previously-installed module '1.7.1.2' with version '1.6.2' under the directory 'C:\Program Files\WindowsPowerShell\Modules\Strapper\1.6.2'. If you still want to install or update, use -SkipPublisherCheck parameter. At C:\Program Files\WindowsPowerShell\Modules\PowerShellGet\1.0.0.1\PSModule.psm1:2089 char:20
... $sid = PackageManagement\Install-Package @PSBoundParameters
+ CategoryInfo : InvalidOperation: (Microsoft.Power....InstallPackage:InstallPackage) [Install-Package], Exception
+ FullyQualifiedErrorId : ModuleIsNotCatalogSigned,Validate-ModuleAuthenticodeSignature,Microsoft.PowerShell.PackageManagement.Cmdlets.InstallPackage
Steps to Reproduce
- Run the command
Install-Module -Name Strapper -RequiredVersion 1.7.1.2
- Observe the error message indicating the module is not catalog signed.
Expected Behavior
The module should install without requiring the -SkipPublisherCheck parameter if the certificate and publisher are valid.
Actual Behavior
The installation fails unless the -SkipPublisherCheck parameter is used.
Questions
- Why is the
-SkipPublisherCheck parameter necessary for this installation?
- Why is the certificate not being recognized despite being valid?
Environment
Description
I encountered an error while trying to install the Strapper module. The installation process does not recognise the certificate and the publisher, and it prompts using the
-SkipPublisherCheckparameter with theInstall-Modulecommand. Although the installation works with the-SkipPublisherCheckparameter, I am concerned about why this is necessary and why our certificate is not accepted.Error Message
Steps to Reproduce
Install-Module -Name Strapper -RequiredVersion 1.7.1.2Expected Behavior
The module should install without requiring the
-SkipPublisherCheckparameter if the certificate and publisher are valid.Actual Behavior
The installation fails unless the
-SkipPublisherCheckparameter is used.Questions
-SkipPublisherCheckparameter necessary for this installation?Environment