PoshCode / Configuration

A module to help other modules have settings
MIT License
176 stars 27 forks source link

Missing signature #45

Closed brainz80 closed 3 years ago

brainz80 commented 3 years ago

When updating I get:


The version '1.5.0' of the module 'Configuration' being installed is not catalog signed. Ensure that      
the version '1.5.0' of the module 'Configuration' has the catalog file 'Configuration.cat' and signed     
with the same publisher 'CN=Joel H. Bennett, O=Joel H. Bennett, L=West Henrietta, S=New York, C=US'       
as the previously-installed module 'Configuration' with version '1.3.1' under the directory               
'%userprofile%\Documents\PowerShell\Modules\Configuration\1.3.1'. If you still want to install or        
update, use -SkipPublisherCheck parameter.                                                                
nstrelow commented 3 years ago

same problem here

brainz80 commented 3 years ago

Took the risk and updated. To update I had to install the module Configuration with:

Install-Module Configuration -SkipPublisherCheck -Force

then remove the previous versions:

$Latest = Get-InstalledModule Configuration
Get-InstalledModule Configuration -AllVersions | Where-Object { $_.Version -ne $Latest.Version } | Uninstall-Module

haven't noticed any problems so far. Though hopefully the next updates will fix this issue.

Jaykul commented 3 years ago

I am sorry about that. I've let my code-signing certificates lapse. Frankly, during 2020 the process for renewing them was broken.

I'm not sure if I'll renew them or now. I'm really not convinced anyone cares about code signing of PowerShell modules except when it breaks something because PowerShell hates it when you change signing certs (or stop signing like this). Based on that it seems that not signing is the safer option.

The work-around is to Install-Module Configuration -SkipPublisherCheck -Force as suggested above.