Hi All,

I have discovered how to do this.  I am going to show you how to do a self signed py2exe:

Self signing steps:

  1. In cygwin follow the instructions here: http://www.top20toolbar.com/misc/codesigncert.htm
  2. download capicom at http://www.download.com/Platform-SDK-Redistributable-CAPICOM/3000-2408_4-10730823.html
  3. regsrv32 capicom.dll
  4. execute sign_exe.py in the dist directory from the build above (in cmd, not cygwin)
sign_exe.py:

import win32com.client
s=win32com.client.Dispatch('capicom.signedcode')
s.FileName='py2exe_prog.exe' #your program executable
s.Sign(None)
s.Timestamp('http://timestamp.verisign.com/scripts/timstamp.dll')

Obviously this is self signed and won't actually authenticate correctly, but you can buy a certificate then it will.

On Thu, Oct 9, 2008 at 2:43 AM, Mark Hammond <mhammond@skippinet.com.au> wrote:
> William Heath wrote:
> > Hi All,
> >
> > I am sooooo impressed with py2exe.  I have a need to sign it however
> > so that when my app is installed it doesn't give the user the fear that
> > it is malware.  I want to self sign it just to test that it will work.
> > I have googled like crazy and have not found too many tutorials on how
> > to do this on a python windows executable created in py2exe.  Can you
> > share with me how to achieve this goal?
> >
>
> I'd like to add a 'me too!' to this - I'd love to know how to generate
> a self signed cert for my apps.

I haven't followed this exact process myself, but know others that have.
The process is no different for a py2exe generated executable than any
other.

Cheers,

Mark


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Py2exe-users mailing list
Py2exe-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/py2exe-users