Page 1 of 1

Signing issues

Posted: Mon Aug 06, 2018 11:57 pm
by CermakPOI
Product, version and build: PowerShell Studio 2018 v5.5.153
32 or 64 bit version of product: 64
Operating system: Win10 Por
32 or 64 bit OS: 64

*** Please add details and screenshots as needed below. ***
Powershell studio doesn't use the selected certificate (Certificate in local store). It's been working in v5.5.151

It uses the first certificate found, even if it's not available for Code signing.

As a workaround i use this "External Signing tool" which is working fine for scripts but not for Compiled Exe or Modules:

Code: Select all

powershell.exe -WindowStyle Hidden -command "Set-AuthenticodeSignature -FilePath %File% -HashAlgorithm SHA256 -Certificate $((Get-ChildItem cert:\currentuser\my -codesigning -ErrorAction Stop)[0])"
Signing does absolutely nothing.

I reinstalled PSS v5.5.152, removed all settings (registry, appdata, programdata)
Now the signing wizard appears - everytime i want to sign! Selecting the wrong Certificate!

Re: Signing issues

Posted: Tue Aug 07, 2018 9:45 am
by davidc
Reinstalling is not going to help in this case and is not recommended.

Packaged executables and MSI installer have separate settings for signing. You must configure the certificate in the file's packager settings (Ribbon->Deploy->Packager->Settings):
Packager Settings - Signing.png
Packager Settings - Signing.png (40.25 KiB) Viewed 1042 times