+ Reply to Thread
Results 1 to 4 of 4

Thread: Enter pfx password during compile time with signtool

  1. #1

    Default Enter pfx password during compile time with signtool

    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

  2. #2
    Join Date
    Mar 2004
    Posts
    4,307

    Default Re: Enter pfx password during compile time with signtool

    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
    Attached Images Attached Images    

  3. #3

    Default Re: Enter pfx password during compile time with signtool

    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

  4. #4
    Join Date
    Mar 2004
    Posts
    4,307

    Default Re: Enter pfx password during compile time with signtool

    Hi Martin,

    You are welcome.

    Have a great weekend.

    Friedrich

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Posting Permissions

  • You may post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts
  •