NDG Security

Home | Research | Architecture | Documentation | Downloads | Discussion | OMII-UK | ESG and IPCC AR5 | DEWS | Admin Quick Start


MyProxyClient

The MyProxyClient Python package has been developed as part of development activities for the NERC DataGrid Security system. This work has been supported over the past year (2007-2008) by OMII-UK.

The implementation is based on the myproxy_logon script developed by Tom Uram of ANL. Rather than binding to the MyProxy C libraries, it uses the M2Crypto Python OpenSSL library wrapper to make calls to a MyProxy server following the MyProxy protocol.

Installation

MyProxyClient is available from PyPI:

$ easy_install MyProxyClient

Example

Retrieve credentials from a MyProxy server running at myproxy.localhost on the default port:

>>> from myproxy.client import MyProxyClient
>>> myproxy = MyProxyClient(hostname='myproxy.localhost')
>>> credentials = myproxy.logon('myusername', 'mypassword')

credentials is a tuple containing certificate(s) and private key as strings.

Documentation

epydoc generated documentation is available at the Python package site.

SubVersion Repository

See http://proj.badc.rl.ac.uk/ndg/browser/TI12-security/trunk/python/MyProxyClient


NDG3: Capability, Discovery, Vocab, Software, MOLES, Security, Community, Roadmap, Management