Digital signature not working - Advanced Installer Community
Fulgan
Posts: 101
Joined: Mon Feb 27, 2012 10:42 am

Digital signature not working

The latest version (11.3) of AdvancedInstaller does not seem to be able to work with code signing.

When using a PFX certificate, any attempt to build a package finished with "The digital signing of some files failed. Error Message:digisign.exe error. System error code: 86. Error message: The specified network password is not correct." The password IS correct (it's taken directly from the password manager and I've verified that it works by loading the PFX into the windows certificate store.

When attempting to use a certificate from the store, the list simply stays empty, not listing any code signing certificate stored locally (either in the user store or in the system store).

Signing executable files with the same PFX and apssword using a different tool works fine on the same machine.

Am I missing something ?

Thanks
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: Digital signature not working

Hello,

I'm not sure why you encountered this behavior.
By default, Advanced Installer is using DigiSign.exe signing utility. Can you please try to see if the behavior still persist if you are using other external tool (e.g. SignTool.exe ) when signing from Advanced Installer? For example, SignCode.exe comes with Microsoft Windows SDK. This can be done from menu bar -> "Options" -> "External Tools..." -> select a correct path for the utility.
When attempting to use a certificate from the store, the list simply stays empty, not listing any code signing certificate stored locally (either in the user store or in the system store).
This may happens if there is no valid certificate in the store of the current user. When searching for valid certificate, we are looking in the current user store.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Fulgan
Posts: 101
Joined: Mon Feb 27, 2012 10:42 am

Re: Digital signature not working

Hello,

I've verified that it works with SignFile as provided by VS2014 as well as the tool I usually use for digitally signing files (home-written one).

Edit: I didn't see that I could use SignFile.exe from AdvancedInstaller. I will try this afternoon. Thanks

Edit2: When I use signtool from the command-lien, it works. When I use it from AdvancedInstaller, it fails.

Edit3: I found the issue: the password contains double-quote characters and they aren't escaped properly in the command-line. Changing the password to one that only contains characters and numbers fixed the problem.
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: Digital signature not working

Hello,

Thank you for your feedback. I'm glad you got this working.

If there is anything else I can help you with, please let me know.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”