PDA

View Full Version : Enter pfx password during compile time with signtool



Martin
11-21-2013, 10:12 AM
Hello,


I am not sure if this is an configuration issue or if this simply does not work.

I got a renewed certificate in form of a pfx file. This file works great for signing my device drivers.

So far I used a combination of pvk, spc and signcode where I was able to enter the password during compile time of the setup.

I removed the pvk and spc from my project added the pfx and after running into the well known "file not found" error changed signcode to signtool (ddk version).


If I enter the password in the "Settings/Digital Signature" dialog I am able to build a signed installer. If I remove the password I get a compiler error :

Adding Digital Certificate to Uninstall...
SIGNTOOL
Compiler error GEN1053: Code signing process failed. Error Code: 1


I have no clue on how and where the password in the dialog is stored and I would prefer to enter such an important password during compile time.


Is this possible with Setup Builder 8 [Developer Edition] and Signtool ?




Thanks,
Martin

linder
11-21-2013, 11:19 AM
Martin,

The Microsoft SignTool.exe does not display any password dialog (that is by Microsoft design) in command line mode.

You can do the following (see attached screenshots).

1. Create a [PFX_PASSWORD] compiler variable and enable the SKU Management Configuration option.

2. In General Information -> Digital Signature, enter [PFX_PASSWORD] as password.

Compile and the IDE will ask for the .pfx password.

Does this help?

Friedrich

Martin
11-22-2013, 02:37 AM
Hello Friedrich,


thanks for your response. The explanation helped me a lot and satisfies my requirements completely.


I knew that SignTool does not pop up a password dialog. But I was hoping that SetupBuilder does.

Well, now it does :-)


Thanks,
Martin

linder
11-22-2013, 02:44 AM
Hi Martin,

;) You are welcome.

Have a great weekend.

Friedrich