Selecting Certificate in PS studio,

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 SUBSCRIPTION NUMBERS, LICENSE 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
rstoddart
Posts: 5
Joined: Tue May 31, 2016 1:49 pm

Selecting Certificate in PS studio,

Post by rstoddart » Tue Sep 17, 2019 7:37 am

Product: PowerShell Studio 2019 (64 Bit)
Build: v5.6.162
OS: Windows 10 Enterprise (64 Bit)
Build: v10.0.16299.0

File -> Options -> PowerShell ->
I have too many certs with the same CN=Email@tailspin.com
I cant select the cert I want from the pulldown, the selection window

How do I specify the Code signing cert over the Email signing cert??

I get the error when I chose the friendly name of the cert.

***** Post mortem variable output *****
>> Error Signing File: C:\Scripts\RMDA\sign\test.ps1
>> Cannot find object or property
>> Successfully Signed File: C:\Scripts\RMDA\sign\test.ps1
>> Error Signing File: C:\Scripts\RMDA\sign\test.ps1
>> Cannot find object or property
>> Error Signing File: C:\Scripts\RMDA\sign\test.ps1
>> Cannot find object or property
>> Error Signing File: C:\Scripts\RMDA\sign\test.ps1
>> Cannot find object or property
>> Error Signing File: C:\Scripts\RMDA\sign\test.ps1
>> Cannot find object or property


I was able to find how to sign the script with the CLI. I would like to get this working so I can more readily sign scripts in the future.

Thanks!

User avatar
brittneyr
Site Admin
Posts: 187
Joined: Thu Jun 01, 2017 7:20 am

Re: Selecting Certificate in PS studio,

Post by brittneyr » Tue Sep 17, 2019 7:57 am

Are unable to change your certificate for signing at all from your certificate store:
SPS_OptionsCertStore.png
SPS_OptionsCertStore.png (29.32 KiB) Viewed 508 times
The dialog that appears is your certificate store, a windows dialog.
If you have too many certificates, you can always remove certificates you don't use anymore.
You may find the following link helpful:
https://www.thesslstore.com/blog/how-to ... rtificate/
Brittney Ryn
SAPIEN Technologies, Inc.