Signing issues

This forum can be browsed by the general public. Posting is limited to current SAPIEN license holders with active maintenance and does not offer a response time guarantee.
Forum rules
DO NOT POST LICENSE NUMBERS, ACTIVATION KEYS OR ANY OTHER LICENSING INFORMATION IN THIS FORUM.
Only the original author and our tech personnel can reply to a topic that is created in this forum. If you find a topic that relates to an issue you are having, please create a new topic and reference the other in your post.

Any code longer than three lines should be added as code using the 'Select Code' dropdown menu or attached as a file.
User avatar
CermakPOI
Posts: 38
Last visit: Tue Apr 06, 2021 11:27 pm

Signing issues

Post 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!

User avatar
davidc
Posts: 5913
Last visit: Mon Jul 08, 2019 8:55 am
Been upvoted: 1 time

Re: Signing issues

Post 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 1043 times
David
SAPIEN Technologies, Inc.