Skip to main content

MyProxy Client

Project description

MyProxy Client Package

This a pure* Python implementation of a client to the MyProxy Credential Management Server (http://grid.ncsa.uiuc.edu/myproxy/). It provides both a Python API and a command line interface.

  • i.e. MyProxy C client libraries are not required for this package.

It uses pyOpenSSL to make an SSL connection to the server following the messaging interface as outlined in: http://grid.ncsa.uiuc.edu/myproxy/protocol/

The code is based on an original program myproxy_logon by Tom Uram of ANL.

Examples

These show how to retrieve a certificate bootstrapping trust in remote service:

API

` >>> from myproxy.client import MyProxyClient >>> myproxy_clnt = MyProxyClient(hostname="myproxy.somewhere.ac.uk") >>> cert, private_key = myproxy_clnt.logon(username, password, bootstrap=True) `

Command line interface

` $ myproxyclient logon -s myproxy.somewhere.ac.uk -l <username> -o creds.pem -b `

Releases

2.0.3

  • Default to TLS v1.2 for security

2.0.2

  • Added new command line option -e which will force output of any error trace. The default is now that the error trace is not echoed. Instead only the message from top-level exception is included.

  • Fix for certificate DN list for Python 2 version. Thanks to Lukasz for reporting the bug: https://github.com/cedadev/MyProxyClient/issues/12

2.0.1

  • Updated hashing algorithm to sha256 after reported errors interacting with some servers

2.0.0

  • Ported to Python 3. This version is dual compatible with Python 2 and 3.

  • Minor fix to script to improve error reporting

  • Added Vagrantfile to enable provisioning of test myproxy-server for use with the tests.

Tested on CentOS 6.8 and OSX El Capitan

1.4.4

  • Minor changes for ready for inclusion in conda-forge. Thanks to Alex Goodman.

1.4.3

  • Fix for SSL to use TLS instead of SSLv3 to address POODLE vulnerability

  • Fix for SSL verification for PyOpenSSL version 0.14 - v1.3.1 was broken because it passed the call back method to OpenSSL using verification classes’ __call__ method.

Tested on CentOS 6.4

1.3.1

  • Fix to MyProxyClient.writeProxyFile and MyProxyClient.readProxyFile to correctly pick-up overridden file setting. Thanks to Nicolas Carenton, IPSL.

Tests

Unit test module with test files is in test/. See the README in that directory.

Documentation

Sphinx generated documentation is available in documentation/. run the Makefile to regenerate if required.

Thanks

  • to OMII-UK (Now Software Sustainability Institute) for funding development of NDG Security (2007-2008)

  • Tom Uram who wrote the myproxy_logon program on which this package is based.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

MyProxyClient-2.0.3.tar.gz (36.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

MyProxyClient-2.0.3-py3-none-any.whl (48.6 kB view details)

Uploaded Python 3

File details

Details for the file MyProxyClient-2.0.3.tar.gz.

File metadata

  • Download URL: MyProxyClient-2.0.3.tar.gz
  • Upload date:
  • Size: 36.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: Python-urllib/3.6

File hashes

Hashes for MyProxyClient-2.0.3.tar.gz
Algorithm Hash digest
SHA256 693e17fa03f6313a6a14bffaf7a7d0831f036a064d5467ceb5a64b0e3ea8dd7e
MD5 89bbc7eb2525746de838e24e77ae2ba4
BLAKE2b-256 6f803343b4cc8f171ddccdc35d9b17ce9727b7844941fcc96fb03a78fb469697

See more details on using hashes here.

File details

Details for the file MyProxyClient-2.0.3-py3-none-any.whl.

File metadata

File hashes

Hashes for MyProxyClient-2.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 911394d3ddb3268b9cbeb172f30b4309b4057397198f3afa8e4304ae46538c66
MD5 933195e4249e1ddf428028a62db1b6ca
BLAKE2b-256 9f6acb25e040d53b02384b4117cc331f89b01628d58d8f9d7531ecaa011cdfd9

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page