Changeset 5048 for TI12-security


Ignore:
Timestamp:
27/02/09 13:33:22 (11 years ago)
Author:
pjkersha
Message:

Updates to licence info and README for unit tests.

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

Legend:

Unmodified
Added
Removed
  • TI12-security/trunk/python/MyProxyClient/README

    r4814 r5048  
    44Management Server (http://grid.ncsa.uiuc.edu/myproxy/) 
    55 
    6 * i.e. MyProxy C client libraries are not required for this package to run.  
     6* i.e. MyProxy C client libraries are not required for this package.  
    77 
    88It uses M2Crypto to make an SSL connection to the server following the 
  • TI12-security/trunk/python/MyProxyClient/myproxy/__init__.py

    r4838 r5048  
    77__date__ = "15/12/08" 
    88__copyright__ = "(C) 2009 Science and Technology Facilities Council" 
    9 __license__ = """BSD""" 
     9__license__ = """BSD - See LICENSE file in top-level directory""" 
    1010__contact__ = "Philip.Kershaw@stfc.ac.uk" 
    1111__revision__ = '$Id$' 
  • TI12-security/trunk/python/MyProxyClient/myproxy/client.py

    r4838 r5048  
    1111__date__ = "02/06/05" 
    1212__copyright__ = "(C) 2009 Science and Technology Facilities Council" 
    13 __license__ = """BSD 
     13__license__ = """BSD - See LICENSE file in top-level directory 
    1414 
    1515For myproxy_logon see Access Grid Toolkit Public License (AGTPL) 
  • TI12-security/trunk/python/MyProxyClient/myproxy/utils/__init__.py

    r4838 r5048  
    77__date__ = "15/12/08" 
    88__copyright__ = "(C) 2009 Science and Technology Facilities Council" 
    9 __license__ = """BSD""" 
     9__license__ = """BSD - See LICENSE file in top-level directory""" 
    1010__contact__ = "Philip.Kershaw@stfc.ac.uk" 
    1111__revision__ = '$Id$' 
  • TI12-security/trunk/python/MyProxyClient/myproxy/utils/openssl.py

    r4838 r5048  
    77__date__ = "08/02/07" 
    88__copyright__ = "(C) 2009 Science and Technology Facilities Council" 
    9 __license__ = """BSD""" 
     9__license__ = """BSD - See LICENSE file in top-level directory""" 
    1010__contact__ = "Philip.Kershaw@stfc.ac.uk" 
    1111__revision__ = '$Id:openssl.py 4643 2008-12-15 14:53:53Z pjkersha $' 
  • TI12-security/trunk/python/MyProxyClient/setup.cfg

    r4820 r5048  
    1010# Copyright (C) 2009 Science and Technology Facilities Council 
    1111#  
    12 # This software may be distributed under the terms of the Q Public License, 
    13 # version 1.0 or later. 
     12# BSD - See LICENSE file in top-level directory 
    1413[EasyInstall] 
    1514 
  • TI12-security/trunk/python/MyProxyClient/setup.py

    r4838 r5048  
    77__date__ = "12/12/08" 
    88__copyright__ = "(C) 2009 Science and Technology Facilities Council" 
    9 __license__ = """BSD 
     9__license__ = """BSD - See LICENSE file in top-level directory 
    1010 
    1111Software adapted from myproxy_logon.  - For myproxy_logon see Access Grid  
  • TI12-security/trunk/python/MyProxyClient/test/README

    r4820 r5048  
    11MyProxyClient Unit Tests 
    22======================== 
    3 To set-up this test, A MyProxy server process must be running to test against. 
    4 See http://grid.ncsa.uiuc.edu/myproxy/ for guidance on obtaining and installing 
    5 it. 
     3The unit test module is divided into two unit test classes:  
    64 
    7 To run these tests: 
     5MyProxyClientLiveTestCase 
     6MyProxyClientInterfaceTestCase 
    87 
    9 1) Start myproxy-server on it's host machine e.g. as root run, 
     8The first, MyProxyClientLiveTestCase depends on connection to a myproxy-server. 
     9The test certificates and files in this directory are for illustration only. 
     10They must be replaced with certificates issued by a CA that the myproxy-server 
     11is configured to trust. See http://grid.ncsa.uiuc.edu/myproxy/ for guidance on  
     12installing and configuring MyProxy. 
     13 
     14The second test class MyProxyClientInterfaceTestCase, performs sanity checks on 
     15the getting and setting of attributes.  These tests can be run without access 
     16to a myproxy-server service. 
     17 
     181) To run MyProxyClientLiveTestCase: 
     19 
     201.1) Start myproxy-server on it's host machine e.g. as root run, 
    1021 
    1122$ myproxy-server 
    1223 
    13 2) Edit myProxyClient.cfg and set the hostname element to the fully 
     241.2) Edit myProxyClient.cfg and set the hostname element to the fully 
    1425qualified domain name of the MyProxy host OR alternatively set the environment 
    15 variable MYPROXY_SERVER to the host name. 
     26variable MYPROXY_SERVER to the host name e.g.: 
     27 
     28$ export MYPROXY_SERVER=mytest.myproxy-server.somewhere 
     29 
     30The environment variable setting will override any setting in the config file.   
     31You may also need to set the MYPROXY_SERVER_DN environment variable and/or  
     32experiment with the serverDN and serverCNPrefix config file settings to allow  
     33for any mismatch between the MyProxy server certificate Distinguished Name and  
     34the hostname of the host server. 
    1635 
    1736The tests involve uploading new credentials, changing password settings and 
    18 finally removing the credentials.  Make sure the MyProxy server you are using 
    19 for tests is configured to allow you to carry out these operations.  If  
    20 necessary download and install a copy of MyProxy for test purposes.  Tests 
    21 may be run individually e.g. to test myProxy logon only.  See 4) 
     37finally removing these credentials from the MyP.  Make sure the MyProxy server you are using 
     38for tests is configured to allow you to carry out these operations and that 
     39you have test certificates issued by a CA that the MyProxy server is  
     40configured to trust.  If necessary download and install a copy of MyProxy for  
     41test purposes.  Tests may be run individually e.g. to test myProxy logon only.  
     42See 1.4) 
    2243 
    23 3) Run the tests with the command: 
     441.3) Run the tests with the command: 
    2445 
    25 $ python ./test_myproxyclient.py 
     46$ python ./test_myproxyclient.py MyProxyClientLiveTestCase 
    2647 
    27 4) To run individual tests give the test method name: 
     481.4) To run individual tests give the test method name: 
    2849 
    29 $ python ./test_myproxyclient.py MyProxyClientTestCase.test1Store 
     50$ python ./test_myproxyclient.py MyProxyClientLiveTestCase.test1Store 
    3051 
    3152 * Note that some tests are dependent on the output of previous tests.   
     
    4263 * See the installation guide for MyProxy trouble shooting information. 
    4364 
    44 Certificates and private keys are from a test CA and are not for use production 
    45 use. 
     652) To run MyProxyClientInterfaceTestCase only: 
    4666 
    47 P J Kershaw 12/12/08 
     67You may wish to run these tests alone if you don't have a configuration set-up 
     68to connect to a myproxy-server. 
     69 
     70Nb. Example certificates and private keys provided are from a test CA and are  
     71not for production use. 
     72 
     73$ python ./test_myproxyclient.py MyProxyClientInterfaceTestCase 
     74 
     753) To run MyProxyClientLiveTestCase and MyProxyClientInterfaceTestCase: 
     76 
     77$ python ./test_myproxyclient.py MyProxyClientLiveTestCase 
     78 
     79 
     80P J Kershaw 27/02/09 
  • TI12-security/trunk/python/MyProxyClient/test/myProxyClient.cfg

    r4770 r5048  
    88# Copyright (C) 2009 Science and Technology Facilities Council 
    99#  
    10 # This software may be distributed under the terms of the Q Public License, 
    11 # version 1.0 or later. 
     10# BSD - See LICENSE file in top-level directory 
    1211[DEFAULT] 
    1312# Delete this element and take setting from MYPROXY_SERVER environment  
  • TI12-security/trunk/python/MyProxyClient/test/myProxyClientTest.cfg

    r4770 r5048  
    88# Copyright (C) 2009 Science and Technology Facilities Council 
    99#  
    10 # This software may be distributed under the terms of the Q Public License, 
    11 # version 1.0 or later. 
     10# BSD - See LICENSE file in top-level directory 
    1211[setUp] 
    1312cfgFilePath: $MYPROXYCLIENT_UNITTEST_DIR/myProxyClient.cfg 
  • TI12-security/trunk/python/MyProxyClient/test/proxy.crt

    r4647 r5048  
    11-----BEGIN CERTIFICATE----- 
    2 MIICijCCAXKgAwIBAgICAPkwDQYJKoZIhvcNAQEEBQAwQjEMMAoGA1UEChMDTkRH 
     2MIICijCCAXKgAwIBAgICAQIwDQYJKoZIhvcNAQEEBQAwQjEMMAoGA1UEChMDTkRH 
    33MQ0wCwYDVQQLEwRCQURDMRAwDgYDVQQLEwdHYWJyaWVsMREwDwYDVQQDEwh0ZXN0 
    4 dXNlcjAeFw0wODEyMTUxNTA4NTBaFw0wODEyMTYwOTEzNTBaMFIxDDAKBgNVBAoT 
     4dXNlcjAeFw0wOTAyMjcxMjA2MjlaFw0wOTAyMjgwNjExMjlaMFIxDDAKBgNVBAoT 
    55A05ERzENMAsGA1UECxMEQkFEQzEQMA4GA1UECxMHR2FicmllbDERMA8GA1UEAxMI 
    66dGVzdHVzZXIxDjAMBgNVBAMTBXByb3h5MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCB 
    7 iQKBgQDHgaEe4hYDCO7vULzosHSKwTAbr7EbrPAOp1vxCQHglOT3+NOSCAxUupCj 
    8 v5bHeotdwnkbQ0xTf3cQzra+Zpkl0WIDBRVQYXNyIf0ypKrkVEff4zKpq34jTjto 
    9 WOw69qwRVyLvJva8owkT3CY4Hch0GU435Bgmi7Bsu84/SMtLQQIDAQABMA0GCSqG 
    10 SIb3DQEBBAUAA4IBAQBu0z3VMRE9kYllw+ShTOjjpxVhzVOFyWTeb0MVBo1XtwtD 
    11 FA4RQSI5NuQiaEYtr9m2s6KNOWeKAaJpwEINo4xc/UDCxunLOy/OLOMfWu+CCgSI 
    12 hXdrymKWa6E1qUkYvMAxkusH3LFr7zp+Wz8L9IQ9zgCtrL6bsIE95QSdKtNJuMdU 
    13 nNEkbFTMy1aF7BN9dKWdUE60CI4bwM+JDS+OulNTvNzGqKrvO3yKbdgwazT0aC/S 
    14 kkyQRC5FRKk5jeSdupHPeZACsw3om4xgjpcGD4cXm5CkbMFDCWDX4Owna/lSKt+A 
    15 fvtdZiUFMtFxrIThp0BY4qqOk3hdXttNQr4QS0JM 
     7iQKBgQC9rRosWhzLmb9Somkxp7BL33Av3rxCNsV3gs5+viNPoa75siG2Mbop+fZQ 
     8JYPF0IWaCI6uysxVexnEILVs+xJyV5KCXCYbdaJhlOXyhmGUTaAWGHR+6+P6eO7m 
     9LMTgKpOullCqDd40+r+Z6iCnsBkq3btXuvXyzfVaVuUfYlKyWwIDAQABMA0GCSqG 
     10SIb3DQEBBAUAA4IBAQBSjq0aApYQbjieXVDDdMUGfUUWEqoVjQDl8u8FTEXvTueK 
     11o3EgXmgGOWtkn3acoGLTUfznjut2e4M90/kJU8sN/bMldy+TqgVDiTuppmcM8BMp 
     120CP5XdlUT4Egbk27IBzlEZYcwbNqoVQYADEuRDxNScapoGi/qq48xuUInNMR2+PB 
     13xFUVLunKQq2kFUFpkOFHCnkH0c4gCqe09YhxE06EgqfGszaz8LZZhHDjQ1ldEAPZ 
     14iXTeNpidFGor3e93bzUxFldBpZZcPPPuqmIC0aZb3A3iovzvyDcYRgFB94cPknRm 
     15WzYssgEe8BJPapkWCRkX7gKdAYf4ef5zIv9sqmRg 
    1616-----END CERTIFICATE----- 
    1717-----BEGIN CERTIFICATE----- 
    18 MIICgTCCAeqgAwIBAgICAPkwDQYJKoZIhvcNAQEEBQAwLzEMMAoGA1UEChMDTkRH 
    19 MQ0wCwYDVQQLEwRCQURDMRAwDgYDVQQDEwdUZXN0IENBMB4XDTA4MDEwNDE0Mzky 
    20 OVoXDTA5MDEwMzE0MzkyOVowQjEMMAoGA1UEChMDTkRHMQ0wCwYDVQQLEwRCQURD 
     18MIICgTCCAeqgAwIBAgICAQIwDQYJKoZIhvcNAQEEBQAwLzEMMAoGA1UEChMDTkRH 
     19MQ0wCwYDVQQLEwRCQURDMRAwDgYDVQQDEwdUZXN0IENBMB4XDTA4MTIxNjE1MTgy 
     20NVoXDTEzMTIxNTE1MTgyNVowQjEMMAoGA1UEChMDTkRHMQ0wCwYDVQQLEwRCQURD 
    2121MRAwDgYDVQQLEwdHYWJyaWVsMREwDwYDVQQDEwh0ZXN0dXNlcjCCASIwDQYJKoZI 
    2222hvcNAQEBBQADggEPADCCAQoCggEBAOdL1ZgnNhthCgNzg3vO/8jMbpfa0aggwKmq 
     
    2626vTnxOuscWOWjooDURwr4JeP0XRqBGcvcq6Ba24FxSr+R+UwyoDqLYmnrLDlxrecp 
    2727QCIYArOPlkgOi0Kw5nu9B3pMzp6UqXH4b8JXcBW2t2cRMzWo+VcCAwEAAaMVMBMw 
    28 EQYJYIZIAYb4QgEBBAQDAgTwMA0GCSqGSIb3DQEBBAUAA4GBACpNYTdvUBMYDjYE 
    29 czV4C7XhOAhZkC49/lBM32AwhPzu6ch595Ai3hHf90Onc+Vj4PtXkIJaK/o0Z15A 
    30 l+XjXlSROg5w6bxVQHT4rX/QRgav9EaZEIsytdGmlqcgvKx6Udi1WvrIYVOnf60f 
    31 Vaw/dQLhGEaUulle1Kas0kCK97yV 
     28EQYJYIZIAYb4QgEBBAQDAgTwMA0GCSqGSIb3DQEBBAUAA4GBAJUHnprX3iucPKDM 
     29Xl3dh6mEOywXTv21h84xt3RM3JROluqoXwFS3zEz638fJdRl5G2xchHMDD8OHeiJ 
     30kOwrZNw0Nhl0K1Jc5PVv0wKyR2VMeRcM4xTF4r+J/eWm1WxEZ1/gQz1vlxnwV/6p 
     31AgpWkK/6FZXQzSbdRMk47NTB4IxD 
    3232-----END CERTIFICATE----- 
  • TI12-security/trunk/python/MyProxyClient/test/proxy.key

    r4647 r5048  
    11-----BEGIN RSA PRIVATE KEY----- 
    2 MIICXQIBAAKBgQDHgaEe4hYDCO7vULzosHSKwTAbr7EbrPAOp1vxCQHglOT3+NOS 
    3 CAxUupCjv5bHeotdwnkbQ0xTf3cQzra+Zpkl0WIDBRVQYXNyIf0ypKrkVEff4zKp 
    4 q34jTjtoWOw69qwRVyLvJva8owkT3CY4Hch0GU435Bgmi7Bsu84/SMtLQQIDAQAB 
    5 AoGADyK6golMejZ3Ship/E1GyjAV4kPV/++C1tnDk+nHBq7FIDr0ciPCK7trtcCX 
    6 Q9L8N8TFQ1g7tin5coD8RD2saJvHvyw10UcAcvOCVNo3H9HI1t6TYKjDk2XK4L/D 
    7 ucyhX/MpIVq5mRoLW2yGvJ9etSq8Fx5n4BTXpNBpp4NaMAECQQDotu/f2lqTxa0c 
    8 zbvjVKzOp32ZRH/55TgH2Mmc8SeORjIgYrDyixk8L5Hotw4HbB8YucvmilqwK39P 
    9 eYbXA4ChAkEA23gNYYYOecRS7JxlA9xkyPB3U36TVyv2HrmbgkoU1MWcQGAJSD70 
    10 kNcqofiunOH31ktrPnsh6LbjiNTTyM+moQJBANYvoaHX1+wQUZ+kH51BTve5IpmR 
    11 eXRoK2TVe+LN9kk1hGdYTmI98lD5u4KEEQ51zj00rF2Y05U3w6pDQP7ew2ECQA7O 
    12 7Og1qWhh7M52RwKZrls4jnSdx8dL+hFcqLeD1B//LWnSkQ3E4a+cNQ40v2Nqg9R7 
    13 xkKzADi5jmS/J4MXL8ECQQCGFEipGHVgsliMu0kf/YMSJRqGITV0MaDMG6iDt4zD 
    14 S+SCpggVBVGd2ioocfTeSl14NLE0glUr1iUOXFM0WK3m 
     2MIICXAIBAAKBgQC9rRosWhzLmb9Somkxp7BL33Av3rxCNsV3gs5+viNPoa75siG2 
     3Mbop+fZQJYPF0IWaCI6uysxVexnEILVs+xJyV5KCXCYbdaJhlOXyhmGUTaAWGHR+ 
     46+P6eO7mLMTgKpOullCqDd40+r+Z6iCnsBkq3btXuvXyzfVaVuUfYlKyWwIDAQAB 
     5AoGAJpgNRk8Dou3ivxaq3t6nAZkyQ5tHpRVt8pZcG+/mUXKtnsL/FwphPd9Nnhs0 
     6B9EZDjGFjs1W7GHC6WRaZhVkOCP5VIeLoNMTYU14i0S9d+TPk5SQ5HCjo6IcHts3 
     7n6WF9TvaD9WPpW5zaPoM2tBa8CjhDNDJIjd1YpqZ0e2uPFECQQDrTcsB3I62ff84 
     849mJZf4HRB/qlvYirGi8JE9KfpXxrwJexkivpFQUWKXINh9AeK6DGzVtvoH0e99c 
     9/nePh+XTAkEAzlvvhvnuJEpUos/X4jnypfkzoMEBrqpO4IXX6zsK8bJrBornmtyx 
     10iaR0XRYdNqJMtYWqlqrlKAnsAwzUVUGEWQJAbr4CGTIwiHrsL14s95lk4Q6S5tl9 
     11pfv2nvWHy8ufzktLlkdD1kZEu/6sp3mxY6pol5OqpafPibzy9tVcd9TBuQJATYwW 
     128y4w48pbC+P3SLhmCyEe2aYuL6kogw9JGMjTUAiwV4ETkAqnXQZEBEcvKzzKftyA 
     13QqZt/yHbYzoLAQ7h4QJBAMYlwdUtt2HBNGEqp+TwV2QYfqthPYo9l1CN+zfYWJZn 
     14qwFGwvNBJgrUb8bZe10kicF882cxT6MwYGe2G0eWmzs= 
    1515-----END RSA PRIVATE KEY----- 
  • TI12-security/trunk/python/MyProxyClient/test/test_myproxyclient.py

    r4838 r5048  
    77__date__ = "02/07/07" 
    88__copyright__ = "(C) 2009 Science and Technology Facilities Council" 
    9 __license__ = """BSD""" 
     9__license__ = """BSD- See LICENSE file in top-level directory""" 
    1010__contact__ = "Philip.Kershaw@stfc.ac.uk" 
    1111__revision__ = '$Id$' 
Note: See TracChangeset for help on using the changeset viewer.