On 23/02/2007, at 8:55 AM, Jeremy Mann wrote:

> Thomas, the problem is I don't have CertificateManager3.py. I managed
> to get around this by exporting our existing 2.4 certificate, then
> using the CLI with certmgr4.py to import the certificate.
>
> If there is supposed to be a CertificateManager3.py, then the
> Slackware package maintainer needs to update the package.



I've just rebuilt the package to include the missing  
CertificateManager3.py file (sorry it was missing in the first  
place). The download sites should be updated soon with the new  
package. I've attached the missing file to this email in case anyone  
needs it in a hurry - it can just be manually copied (as root) into  
the /usr/bin directory.


chris


#!/usr/bin/python
#-----------------------------------------------------------------------------
# Name:        CertificateManager.py
# Purpose:     User tool for managing certificates.
# Created:     2003/08/02
# RCS-ID:      $Id: CertificateManager.py,v 1.7 2006/05/01 21:44:42 turam Exp $
# Copyright:   (c) 2002-2003
# Licence:     See COPYING.txt
#-----------------------------------------------------------------------------

# The standard imports
import os, sys
from optparse import Option
from wxPython.wx import *

# Our imports
import agversion
agversion.select(3)
from AccessGrid.Toolkit import WXGUIApplication, MissingDependencyError
from AccessGrid.Security.wxgui import CertificateManagerDialog
from AccessGrid.Security.wxgui import CertificateManagerWXGUI
from AccessGrid.UIUtilities import MessageDialog

def main():
    pyapp = wxPySimpleApp()

    app = WXGUIApplication()

    try:
        app.Initialize("CertificateManager")
    except MissingDependencyError, e:
        if e.args[0] == 'SSL':
	        msg = "The installed version of Python has no SSL support.  Check that you\n"\
                    "have installed Python from python.org, or ensure SSL support by\n"\
                    "some other means."
        else:
            msg = "The following dependency software is required, but not available:\n\t%s\n"\
                    "Please satisfy this dependency and restart the software"
            msg = msg % e.args[0]
        MessageDialog(None,msg, "Initialization Error",
                      style=wxICON_ERROR )
        sys.exit(-1)
    except Exception, e:
        print "Toolkit Initialization failed, exiting."
        print " Initialization Error: ", e
        MessageDialog(None,
                      "The following error occurred during initialization:\n\n\t%s %s" % (e.__class__.__name__,e), 
                      "Initialization Error",
                      style=wxICON_ERROR )
        sys.exit(-1)

    certMgr = app.GetCertificateManager()
    certMgrGui = CertificateManagerWXGUI.CertificateManagerWXGUI(certMgr)
    d = CertificateManagerDialog.CertificateManagerDialog(None, -1,
                                                 "Certificate Manager",
                                                 certMgr, 
                                                 certMgrGui) 
    d.Show(1)
    
    pyapp.SetTopWindow(d)
    pyapp.MainLoop()
    
if __name__ == "__main__":
    main()

Christoph Willing                       +61 7 3365 8350
QCIF Access Grid Manager
University of Queensland



Reply via email to