PowerShell Script Signing

Support for all customers who have purchased a PrimalScript product license. This forum 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
Alexander Riedel
Posts: 6836
Joined: Tue May 29, 2007 4:43 pm

PowerShell Script Signing

Post by Alexander Riedel » Mon Jan 12, 2009 9:30 pm

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

Alex
Alexander Riedel
SAPIEN Technologies, Inc.

User avatar
ryanba
Posts: 28
Joined: Fri Dec 05, 2008 8:19 am

PowerShell Script Signing

Post by ryanba » Tue Jan 13, 2009 2:56 am

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: 6836
Joined: Tue May 29, 2007 4:43 pm

PowerShell Script Signing

Post by Alexander Riedel » Tue Jan 13, 2009 3:00 am

I'll set something up for you

Alex
Alexander Riedel
SAPIEN Technologies, Inc.

User avatar
Alexander Riedel
Posts: 6836
Joined: Tue May 29, 2007 4:43 pm

PowerShell Script Signing

Post by Alexander Riedel » Thu Jan 15, 2009 8:16 am

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
Joined: Fri Dec 05, 2008 8:19 am

PowerShell Script Signing

Post by ryanba » Thu Jan 15, 2009 8:43 am

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: 6836
Joined: Tue May 29, 2007 4:43 pm

PowerShell Script Signing

Post by Alexander Riedel » Thu Jan 15, 2009 9:58 am

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: 6836
Joined: Tue May 29, 2007 4:43 pm

PowerShell Script Signing

Post by Alexander Riedel » Sun Jan 18, 2009 5:17 am

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
Joined: Fri Dec 05, 2008 8:19 am

PowerShell Script Signing

Post by ryanba » Mon Jan 19, 2009 8:20 am

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: 6836
Joined: Tue May 29, 2007 4:43 pm

PowerShell Script Signing

Post by Alexander Riedel » Mon Jan 19, 2009 8:35 am

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
Joined: Fri Dec 05, 2008 8:19 am

PowerShell Script Signing

Post by ryanba » Mon Jan 19, 2009 12:21 pm

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

-Ryan