self signing a py2exe windows executable

Roger Upole rupole at hotmail.com
Tue Oct 7 02:57:46 CEST 2008


William Heath wrote:
> Hi Roger,
> I managed to get the dll and register it.  I am now getting this error:
>
> Traceback (most recent call last):
>  File
> "C:\Python25\Lib\site-packages\pythonwin\pywin\framework\scriptutils.py",
> line 312, in RunScript
>    exec codeObject in __main__.__dict__
>  File "C:\Documents and Settings\blech\My
> Documents\qb_bridge_client_easy\dist\sign_exe.py", line 4, in <module>
>    s.Sign(None)
>  File
> "C:\Python25\lib\site-packages\win32com\gen_py\BD26B198-EE42-4725-9B23-AFA912434229x0x2x1.py",
> line 2067, in Sign
>    return self._oleobj_.InvokeTypes(6, LCID, 1, (24, 0), ((9,
> 49),),pISigner2
> com_error: (-2147352567, 'Exception occurred.', (0, None, u'The 
> certificate
> store does not contain any certificate.\r\n', None, 0, -2138570191), None)
>
> Line 4 is this:
>
> s.Sign(None)
>
> I don't think this can be none can it?
>
> -Tim
>
> P.S.
>
> Thanks for your help!

If the signer is not specified, it should auto-select the appropriate
certificate.  Do you have a code signing certificate installed in
the current user's certificate store ?

          Roger







More information about the Python-list mailing list