darrenjrobinson/1Pwd

Cannot install 1Pwd module: Install-Package: The module '1Pwd' cannot be installed or updated because the authenticode signature of the file '1Pwd.psd1' is not valid. - expired certificate

Closed this issue · 6 comments

Repro:
Install-Module 1Pwd

Error result:
Install-Package: The module '1Pwd' cannot be installed or updated because the authenticode signature of the file '1Pwd.psd1' is not valid.

Get-OpenAuthenticodeSignature returns: Certificate trust could not be established. The first reported error is: certificate has expired

Furthermore, Get-OpenAuthenticodeSignature /1pwd/1Pwd.psd1 -SkipCertificateCheck | Select * shows an expiration (Not After) 2023-06-19 (2 days ago)

It's worth noting that a workaround is to do Install-Module 1Pwd -SkipPublisherCheck but ideally the certificate should be renewed :)

@wsuhoey can you try with the updated commit above.

Admittedly, I'm not sure how to test the commit via Install-Module without using the PSGallery. :(

v2 is published to the PowerShell Gallery now. It supports CLI 2 as well as CLI 1.
It is both signed with a current cert and using a timestamp server that is available for when the cert expires.
More details here. https://darrenjrobinson.hashnode.dev/powershell-automation-for-1password

Confirmed the issue no longer happens with v2.0.0 on PSGallery. Thank you!