Changeset 4647


Ignore:
Timestamp:
15/12/08 15:16:11 (11 years ago)
Author:
pjkersha
Message:

#941: Completed MyProxyClient egg

Location:
TI12-security/trunk/python/MyProxyClient
Files:
8 edited

Legend:

Unmodified
Added
Removed
  • TI12-security/trunk/python/MyProxyClient/myproxy/__init__.py

    r4642 r4647  
     1"""MyProxy client package - contains pure Python implementation of a client 
     2to MyProxy 
     3 
     4NERC Data Grid Project 
     5""" 
     6__author__ = "P J Kershaw" 
     7__date__ = "15/12/08" 
     8__copyright__ = "(C) 2008 STFC & NERC" 
     9__license__ = \ 
     10"""This software may be distributed under the terms of the Q Public  
     11License, version 1.0 or later.""" 
     12__contact__ = "Philip.Kershaw@stfc.ac.uk" 
     13__revision__ = '$Id$' 
  • TI12-security/trunk/python/MyProxyClient/myproxy/client.py

    r4644 r4647  
    3434from ConfigParser import SafeConfigParser 
    3535 
    36 from openssl import OpenSSLConfig, OpenSSLConfigError 
     36from myproxy.utils.openssl import OpenSSLConfig, OpenSSLConfigError 
    3737 
    3838 
  • TI12-security/trunk/python/MyProxyClient/myproxy/utils/__init__.py

    r4645 r4647  
     1"""MyProxy client utils package - contains openssl module for parsing OpenSSL  
     2config files. 
     3 
     4NERC Data Grid Project 
     5""" 
     6__author__ = "P J Kershaw" 
     7__date__ = "15/12/08" 
     8__copyright__ = "(C) 2008 STFC & NERC" 
     9__license__ = \ 
     10"""This software may be distributed under the terms of the Q Public  
     11License, version 1.0 or later.""" 
     12__contact__ = "Philip.Kershaw@stfc.ac.uk" 
     13__revision__ = '$Id$' 
  • TI12-security/trunk/python/MyProxyClient/myproxy/utils/openssl.py

    r4646 r4647  
    1313__revision__ = '$Id:openssl.py 4643 2008-12-15 14:53:53Z pjkersha $' 
    1414 
    15 import re, os 
     15import re 
     16import os 
    1617from ConfigParser import SafeConfigParser 
    1718from M2Crypto.X509 import X509_Name 
     19 
    1820 
    1921class OpenSSLConfigError(Exception): 
     
    8082        self._filePath = filePath 
    8183                     
    82  
    8384 
    8485    def _getFilePath(self): 
     
    172173        Reformat _sections to """ 
    173174        try: 
    174             file = open(self._filePathfilePath) 
     175            file = open(self._filePath) 
    175176            fileTxt = file.read() 
    176177        except Exception, e: 
     
    182183        SafeConfigParser.readfp(self, file) 
    183184         
    184         # Filter section names and reomve comments from options 
     185        # Filter section names and remove comments from options 
    185186        for section, val in self._sections.items(): 
    186187            newSection = section 
  • TI12-security/trunk/python/MyProxyClient/test/__init__.py

    r4404 r4647  
    1 """NDG Security MyProxy client unit test package 
     1"""MyProxy client unit test package 
    22 
    33NERC Data Grid Project 
    44""" 
    55__author__ = "P J Kershaw" 
    6 __date__ = "13/12/06" 
    7 __copyright__ = "(C) 2007 STFC & NERC" 
     6__date__ = "13/12/08" 
     7__copyright__ = "(C) 2008 STFC & NERC" 
    88__license__ = \ 
    99"""This software may be distributed under the terms of the Q Public  
  • TI12-security/trunk/python/MyProxyClient/test/proxy.crt

    r4637 r4647  
    22MIICijCCAXKgAwIBAgICAPkwDQYJKoZIhvcNAQEEBQAwQjEMMAoGA1UEChMDTkRH 
    33MQ0wCwYDVQQLEwRCQURDMRAwDgYDVQQLEwdHYWJyaWVsMREwDwYDVQQDEwh0ZXN0 
    4 dXNlcjAeFw0wODEyMTUxMTQ5MzdaFw0wODEyMTYwNTU0MzdaMFIxDDAKBgNVBAoT 
     4dXNlcjAeFw0wODEyMTUxNTA4NTBaFw0wODEyMTYwOTEzNTBaMFIxDDAKBgNVBAoT 
    55A05ERzENMAsGA1UECxMEQkFEQzEQMA4GA1UECxMHR2FicmllbDERMA8GA1UEAxMI 
    66dGVzdHVzZXIxDjAMBgNVBAMTBXByb3h5MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCB 
    7 iQKBgQDkCGd7W4Ak8WRF91VpdHLhlC85sjl+Y96xF3xSlyLjD8exvaMLCTYqpB/6 
    8 uil+nraXWFHBYw0uCjbuBog7IK6eZjbX/okUCIfYJE03GEgPj5i5/wtA/WJYfJcP 
    9 38yUrrI9sikfjpltE2Y7U9p20Vao5vH+7rLjb/VCpaSRUzV6cQIDAQABMA0GCSqG 
    10 SIb3DQEBBAUAA4IBAQDh7+3m0LZoZb5AYV1QS6fIWIKEmCGtJ9dtGnZOSKFJ3PAz 
    11 d6f9c1M/PVu6GwQtSNuL3h4QJH8ybDsxrqm3oFzmFdPUuEsxRJQrPllGeQUCRhql 
    12 PVv3azp6wUPSwTky/o/N1tMUvp2PNPW7eAXN2Irm0unvAaFyd2KLDgzO8QO0cEtz 
    13 D4eHIMRpE6tc5QGEZL8HWVfAaaUlnvIHBIGVpgMrUn0X0EHQQtyzXhlmQfADXJ5m 
    14 +Yal9firKyoYoj4uqw6FwqQHPgsJ6SGzSe2GHcyhZCixYLdez6jrx1h30o3LvYGv 
    15 vMZuFaLqt9bpmEM4CcDyGovDrrcyK1Z6Nh+e7ekT 
     7iQKBgQDHgaEe4hYDCO7vULzosHSKwTAbr7EbrPAOp1vxCQHglOT3+NOSCAxUupCj 
     8v5bHeotdwnkbQ0xTf3cQzra+Zpkl0WIDBRVQYXNyIf0ypKrkVEff4zKpq34jTjto 
     9WOw69qwRVyLvJva8owkT3CY4Hch0GU435Bgmi7Bsu84/SMtLQQIDAQABMA0GCSqG 
     10SIb3DQEBBAUAA4IBAQBu0z3VMRE9kYllw+ShTOjjpxVhzVOFyWTeb0MVBo1XtwtD 
     11FA4RQSI5NuQiaEYtr9m2s6KNOWeKAaJpwEINo4xc/UDCxunLOy/OLOMfWu+CCgSI 
     12hXdrymKWa6E1qUkYvMAxkusH3LFr7zp+Wz8L9IQ9zgCtrL6bsIE95QSdKtNJuMdU 
     13nNEkbFTMy1aF7BN9dKWdUE60CI4bwM+JDS+OulNTvNzGqKrvO3yKbdgwazT0aC/S 
     14kkyQRC5FRKk5jeSdupHPeZACsw3om4xgjpcGD4cXm5CkbMFDCWDX4Owna/lSKt+A 
     15fvtdZiUFMtFxrIThp0BY4qqOk3hdXttNQr4QS0JM 
    1616-----END CERTIFICATE----- 
    1717-----BEGIN CERTIFICATE----- 
  • TI12-security/trunk/python/MyProxyClient/test/proxy.key

    r4637 r4647  
    11-----BEGIN RSA PRIVATE KEY----- 
    2 MIICXQIBAAKBgQDkCGd7W4Ak8WRF91VpdHLhlC85sjl+Y96xF3xSlyLjD8exvaML 
    3 CTYqpB/6uil+nraXWFHBYw0uCjbuBog7IK6eZjbX/okUCIfYJE03GEgPj5i5/wtA 
    4 /WJYfJcP38yUrrI9sikfjpltE2Y7U9p20Vao5vH+7rLjb/VCpaSRUzV6cQIDAQAB 
    5 AoGBAMJj17N1IRxdG5n5arpnJrfeVxPcNt7jzCczWiwd4wOlpBqFCsSRqbdYClr2 
    6 8ACc1BLYm3k8MzQYSRNIRkIBbljFWv25eFliE3lEJuANAGEbdemUh183U7E4Nml6 
    7 jQTvMxHrq1neGIq/cY+T/D4bOV5DWbHEJi+X9ElAdD/Ou1ExAkEA/iPEpTh0/v17 
    8 3n3hPMb9QPjwlygf57/MMwA/6aM/LaLEXZeSVXmrT/WWFO53iTaLXqdXy9u4zQHB 
    9 nfjcMhN9uwJBAOWztuVNPFMuoJFl0JtVKgHUmx01+iQ60nglcLOnF1Aoq8uusAXr 
    10 m3TAp9wX2UUfNd6xv3fsbeTTbEKJTY6wT8MCQEFAd84gN9H8zaAr2/gZ846KHGQD 
    11 NmXvlgOGTeK0OpWCFD8fmr/9lGHcYaOQMvr1GUW9W8qI6OMiT087RXZKEN8CQF+q 
    12 tK7Vtx0x20ATNomrM56ljKDi3TZ/pS7S8Rhxq/z/o2VmcPtWQF2k64R4Dk6CjC4e 
    13 u47X0oEuKPWhN8MI3X8CQQC57zRUIzfWTp9TS5RcFcHU+mYIl843NjpummZ2w+LM 
    14 I3fyHRPn8NcZaGyf/DT+hdgFmSquqzZlmH7hMKSfrEd3 
     2MIICXQIBAAKBgQDHgaEe4hYDCO7vULzosHSKwTAbr7EbrPAOp1vxCQHglOT3+NOS 
     3CAxUupCjv5bHeotdwnkbQ0xTf3cQzra+Zpkl0WIDBRVQYXNyIf0ypKrkVEff4zKp 
     4q34jTjtoWOw69qwRVyLvJva8owkT3CY4Hch0GU435Bgmi7Bsu84/SMtLQQIDAQAB 
     5AoGADyK6golMejZ3Ship/E1GyjAV4kPV/++C1tnDk+nHBq7FIDr0ciPCK7trtcCX 
     6Q9L8N8TFQ1g7tin5coD8RD2saJvHvyw10UcAcvOCVNo3H9HI1t6TYKjDk2XK4L/D 
     7ucyhX/MpIVq5mRoLW2yGvJ9etSq8Fx5n4BTXpNBpp4NaMAECQQDotu/f2lqTxa0c 
     8zbvjVKzOp32ZRH/55TgH2Mmc8SeORjIgYrDyixk8L5Hotw4HbB8YucvmilqwK39P 
     9eYbXA4ChAkEA23gNYYYOecRS7JxlA9xkyPB3U36TVyv2HrmbgkoU1MWcQGAJSD70 
     10kNcqofiunOH31ktrPnsh6LbjiNTTyM+moQJBANYvoaHX1+wQUZ+kH51BTve5IpmR 
     11eXRoK2TVe+LN9kk1hGdYTmI98lD5u4KEEQ51zj00rF2Y05U3w6pDQP7ew2ECQA7O 
     127Og1qWhh7M52RwKZrls4jnSdx8dL+hFcqLeD1B//LWnSkQ3E4a+cNQ40v2Nqg9R7 
     13xkKzADi5jmS/J4MXL8ECQQCGFEipGHVgsliMu0kf/YMSJRqGITV0MaDMG6iDt4zD 
     14S+SCpggVBVGd2ioocfTeSl14NLE0glUr1iUOXFM0WK3m 
    1515-----END RSA PRIVATE KEY----- 
  • TI12-security/trunk/python/MyProxyClient/test/test_myproxyclient.py

    r4644 r4647  
    179179         
    180180         
    181 from myproxy import OpenSSLConfigError 
     181from myproxy.utils.openssl import OpenSSLConfigError 
    182182 
    183183class MyProxyClientInterfaceTestCase(_MyProxyClientTestCase): 
Note: See TracChangeset for help on using the changeset viewer.