Call Signtool using python

Chris Rebert clp2 at rebertia.com
Tue Mar 2 12:59:22 EST 2010


On Tue, Mar 2, 2010 at 3:34 AM, enda man <emannion at gmail.com> wrote:
> Hi,
>
> I want to call the Windows signtool to sign a binary from a python
> script.
>
> Here is my script:
> //
> os.chdir('./Install/activex/cab')
> subprocess.call(["signtool", "sign", "/v", "/f", "webph.pfx", "/t",
> "http://timestamp.verisign.com/scripts/timstamp.dll", "WebPh.exe" ])
> //
>
> But I am getting this error:
> ////
> SignTool Error: The specified PFX password is not correct.
>
> Number of files successfully Signed: 0
> Number of warnings: 0
> Number of errors: 1
> Finished building plugin installer
> scons: done building targets.
> ////
>
>
> This python script is called as part of a scons build, which is also
> python code.
>
> Anyone seen this before or can pass on any ideas.

Nothing looks obviously wrong (though I'm unfamiliar with signtool).
Have you tried specifying an absolute path to webph.pfx?

Cheers,
Chris
--
http://blog.rebertia.com



More information about the Python-list mailing list