Skip to content

Error while installing the Strapper module #19

@Starepinjore

Description

@Starepinjore

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

  1. Run the command Install-Module -Name Strapper -RequiredVersion 1.7.1.2
  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

  1. Why is the -SkipPublisherCheck parameter necessary for this installation?
  2. Why is the certificate not being recognized despite being valid?

Environment

  • OS

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions