PowerShell Script Signing

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.
This topic is 15 years and 2 months old and has exceeded the time allowed for comments. Please begin a new topic or use the search feature to find a similar but newer topic.
User avatar
Alexander Riedel
Posts: 8478
Last visit: Tue Mar 26, 2024 8:52 am
Answers: 19
Been upvoted: 37 times

PowerShell Script Signing

Post by Alexander Riedel »

I haven't heard back from you. Did you receive my email?

Alex
Alexander Riedel
SAPIEN Technologies, Inc.
User avatar
ryanba
Posts: 28
Last visit: Tue Feb 23, 2010 11:27 pm

PowerShell Script Signing

Post by ryanba »

No I haven't. It doesn't seem your email gets through the Gmail filter with the .exe. Is there like and ftp site where I could download these?

-Ryan
User avatar
Alexander Riedel
Posts: 8478
Last visit: Tue Mar 26, 2024 8:52 am
Answers: 19
Been upvoted: 37 times

PowerShell Script Signing

Post by Alexander Riedel »

I'll set something up for you

Alex
Alexander Riedel
SAPIEN Technologies, Inc.
User avatar
Alexander Riedel
Posts: 8478
Last visit: Tue Mar 26, 2024 8:52 am
Answers: 19
Been upvoted: 37 times

PowerShell Script Signing

Post by Alexander Riedel »

Try the attached control, backup the old one, regasm the new one.
If you sign a script you should see a messagebox. Please let me know if you see it.

Alex

uploads/7840/PWSHHelpCtrl.zip
Alexander Riedel
SAPIEN Technologies, Inc.
User avatar
ryanba
Posts: 28
Last visit: Tue Feb 23, 2010 11:27 pm

PowerShell Script Signing

Post by ryanba »

Ok I backed up my old one and replaced with the one in the zip file. I also registered it using the regasm. Still I do not see anything when I try to sign a script. I am using a pfx that works using the Powershell's Get-PfxCertificate and does not require a password. Not even a window pops up.



I go to Script > Sign Script and nothing happens. I then check the box to sign script when saving and still nothing happens.

I have put the same certificate in the personal certificate store and it is the only certificate there. I then don't specify anything in Scripting Security under Tools > Options. I am able to sign script without a problem.

Is there some way that you can output what exact is happening when it trys to sign a script. Like output it to a file? Also could you show the file path that PrimalScript is trying to use when it tries to sign a script using a PFX file?

-Ryanryanba2009-01-15 15:46:11
User avatar
Alexander Riedel
Posts: 8478
Last visit: Tue Mar 26, 2024 8:52 am
Answers: 19
Been upvoted: 37 times

PowerShell Script Signing

Post by Alexander Riedel »

Well, that is what that component is supposed to be doing.
It would appear it doesn't even get called.
So let's start some place earlier. I'll modify a primalscript.exe to test this.

Alex
Alexander Riedel
SAPIEN Technologies, Inc.
User avatar
Alexander Riedel
Posts: 8478
Last visit: Tue Mar 26, 2024 8:52 am
Answers: 19
Been upvoted: 37 times

PowerShell Script Signing

Post by Alexander Riedel »

Please backup and replace your primalscript.exe with this copy:
ftp://ftp.sapien.com/primalscript.zip

Please let me know what the messages say when you try to sign a file.
Alex
Alexander Riedel
SAPIEN Technologies, Inc.
User avatar
ryanba
Posts: 28
Last visit: Tue Feb 23, 2010 11:27 pm

PowerShell Script Signing

Post by ryanba »

It says:
Signing File with generic signer

Thats the only window that pops up.

-Ryanryanba2009-01-19 15:22:49
User avatar
Alexander Riedel
Posts: 8478
Last visit: Tue Mar 26, 2024 8:52 am
Answers: 19
Been upvoted: 37 times

PowerShell Script Signing

Post by Alexander Riedel »

Can you please scan your system for a capicom.dll?
Ideally there should only be on in Windowsystem32
and the version should be 2.1.0.1

Can you please verify that you do not have other locations
and/or lower version numbers?

Thanks,

Alex
Alexander Riedel
SAPIEN Technologies, Inc.
User avatar
ryanba
Posts: 28
Last visit: Tue Feb 23, 2010 11:27 pm

PowerShell Script Signing

Post by ryanba »

There was no capicom.dll anywhere on my computer. Is this suppose to be installed with PrimalScript or PowerShell?

-Ryan
This topic is 15 years and 2 months old and has exceeded the time allowed for comments. Please begin a new topic or use the search feature to find a similar but newer topic.