Asp Forum
Home
|
Login
|
Register
|
Search
Forums
>
comp.lang.python
Call Signtool using python
enda man
3/2/2010 11:34:00 AM
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...
, "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.
Tks,
EM
3 Answers
Matt Mitchell
3/2/2010 2:46:00 PM
0
I think you need to use the /p switch to pass signtool.exe a password
when using the /f switch.
Check out
http://msdn.microsoft.com/en-us/library/8s9b9yaz%28VS....
for
more info.
-----------------------------------
The information contained in this electronic message and any attached document(s) is intended only for the personal and confidential use of the designated recipients named above. This message may be confidential. If the reader of this message is not the intended recipient, you are hereby notified that you have received this document in error, and that any review, dissemination, distribution, or copying of this message is strictly prohibited. If you have received this communication in error, please notify sender immediately by telephone (603) 262-6300 or by electronic mail immediately. Thank you.
-----Original Message-----
From: python-list-bounces+mmitchell=transparent.com@python.org
[mailto:python-list-bounces+mmitchell=transparent.com@python.org] On
Behalf Of enda man
Sent: Tuesday, March 02, 2010 6:34 AM
To: python-list@python.org
Subject: Call Signtool using python
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...
, "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.
Tks,
EM
--
http://mail.python.org/mailman/listinfo/p...
enda man
3/2/2010 5:34:00 PM
0
On Mar 2, 2:46 pm, "Matt Mitchell" <mmitch...@transparent.com> wrote:
> I think you need to use the /p switch to pass signtool.exe a password
> when using the /f switch.
> Check out
http://msdn.microsoft.com/en-us/library/8s9b9yaz%28VS.80%...
> more info.
>
> -----------------------------------
> The information contained in this electronic message and any attached document(s) is intended only for the personal and confidential use of the designated recipients named above. This message may be confidential. If the reader of this message is not the intended recipient, you are hereby notified that you have received this document in error, and that any review, dissemination, distribution, or copying of this message is strictly prohibited. If you have received this communication in error, please notify sender immediately by telephone (603) 262-6300 or by electronic mail immediately. Thank you.
>
> -----Original Message-----
> From: python-list-bounces+mmitchell=transparent....@python.org
>
> [mailto:python-list-bounces+mmitchell=transparent....@python.org] On
> Behalf Of enda man
> Sent: Tuesday, March 02, 2010 6:34 AM
> To: python-l...@python.org
> Subject: Call Signtool using python
>
> 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...
, "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.
> Tks,
> EM
>
> --
http://mail.python.org/mailman/listinfo/p...
>
>
The same command works when run from the command line but when I run
it from python using subprocess.call(...) it fails as described in my
first post. I do not need to use the /p switch as the password is
embedded in the pfx file.
That is why I think it is something I am or am not doing in python.
EM
Chris Rebert
3/2/2010 5:59:00 PM
0
On Tue, Mar 2, 2010 at 3:34 AM, enda man <emannion@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...
, "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.re...
Servizio di avviso nuovi messaggi
Ricevi direttamente nella tua mail i nuovi messaggi per
Call Signtool using python
Inserendo la tua e-mail nella casella sotto, riceverai un avviso tramite posta elettronica ogni volta che il motore di ricerca troverà un nuovo messaggio per te
Il servizio è completamente GRATUITO!
x
Login to ForumsZone
Login with Google
Login with E-Mail & Password