Authenticode code signing failure with X10

Got a problem you cannot solve? Try here.
Post Reply
khalprin
Posts: 51
Joined: Fri Aug 25, 2006 2:02 pm

Authenticode code signing failure with X10

Post by khalprin »

I'm using InstallAware X10. I recently renewed a code signing certificate and InstallAware reports a failure trying to sign the installer.

I can successfully use signtool.exe to manually sign executable files - so the certificate is good. I use the command:

signtool sign /f "filename.pfx" /p %pwd% /t http://timestamp.comodoca.com/authenticode file_to_sign.exe

I've tried the Installaware test program for signing a file with various urls (including the one above) and:
http://timestamp.digicert.com
http://timestamp.comodoca.com/rfc3161
and every other one in the InstallAware test signing app.
...but all fail.

I exported the certificate to pfx file using sha256 and using TripleDes - all signing through InstallAware fails with both formats.

What could be the issue?
FrancescoT
Site Admin
Posts: 5361
Joined: Sun Aug 22, 2010 4:28 am

Re: Authenticode code signing failure with X10

Post by FrancescoT »

I just run a test using the "IA Code Sign Tool", and I don't see any problem.
Of course, as I have already discussed here (viewtopic.php?f=2&t=11319#p43133), I had to use "http://timestamp.digicert.com" for the time stamp server.
ia_code_sign.png
ia_code_sign.png (16.03 KiB) Viewed 11201 times
If you want to test your PFX with SignTool.exe, you should invoke SignTool two times over the same EXE file to sign, as follow:

1> SignTool.exe sign /f <SignCertFile.pfx> /t <time-stamp-URL> /p <PWD> <FileToSign>
2> SignTool.exe sign /f <SignCertFile.pfx> /as /fd sha256 /tr <time-stamp-URL> /td sha256 /p <PWD> <FileToSig
n>
https://docs.microsoft.com/en-us/window ... o/signtool

The above cmd lines will apply a double digital signature to the given file.
Francesco Toscano
InstallAware Software

White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Publications - http://www.installaware.com/publications-review.htm
InstallAware Help -F1 anywhere in the InstallAware IDE
khalprin
Posts: 51
Joined: Fri Aug 25, 2006 2:02 pm

Re: Authenticode code signing failure with X10

Post by khalprin »

Thanks Francesco,

I ran your two signing commands with my certificate and a file to sign. Both worked successfully and yet the "IA Code Sign Tool" and IA X10 itself report an error when signing the installer. What could be the cause of that?
FrancescoT
Site Admin
Posts: 5361
Joined: Sun Aug 22, 2010 4:28 am

Re: Authenticode code signing failure with X10

Post by FrancescoT »

From IA IDE, can you do a try with omitting the URL parameter (just leave the field blank)?
Francesco Toscano
InstallAware Software

White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Publications - http://www.installaware.com/publications-review.htm
InstallAware Help -F1 anywhere in the InstallAware IDE
khalprin
Posts: 51
Joined: Fri Aug 25, 2006 2:02 pm

Re: Authenticode code signing failure with X10

Post by khalprin »

I just stopped and restarted IA and built the project again. It worked fine - I have no idea why. I'll continue on and see if it happens again.

Thanks for your suggestions.
Post Reply