Changeset 6981 for TI12-security


Ignore:
Timestamp:
11/06/10 11:41:41 (9 years ago)
Author:
pjkersha
Message:

MyProxy? Client 1.1.2 release

  • Fix getTrustRoots method - create CA dir path if it doesn't already exist
Location:
TI12-security/trunk/MyProxyClient
Files:
8 deleted
4 edited

Legend:

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

    r6930 r6981  
    2929import re 
    3030import traceback 
     31import errno 
    3132 
    3233from OpenSSL import crypto, SSL 
     
    14731474         
    14741475        if writeToCACertDir: 
     1476            # Create the CA directory path if doesn't already exist 
     1477            try: 
     1478                os.makedirs(self.caCertDir) 
     1479            except OSError, e: 
     1480                # Ignore if the path already exists 
     1481                if e.errno != errno.EEXIST: 
     1482                    raise 
     1483                 
    14751484            for fileName, fileContents in filesDict.items(): 
    14761485                filePath = os.path.join(self.caCertDir, fileName) 
  • TI12-security/trunk/MyProxyClient/myproxy/test/localhost.crt

    r6847 r6981  
    22    Data: 
    33        Version: 3 (0x2) 
    4         Serial Number: 263 (0x107) 
     4        Serial Number: 2 (0x2) 
    55        Signature Algorithm: md5WithRSAEncryption 
    6         Issuer: O=NDG, OU=BADC, CN=Test CA 
     6        Issuer: O=NDG, OU=Security, CN=Test CA 
    77        Validity 
    8             Not Before: Jun  9 09:28:37 2009 GMT 
    9             Not After : Jun  9 09:28:37 2010 GMT 
    10         Subject: C=UK, ST=Oxfordshire, O=BADC, OU=Security, CN=localhost 
     8            Not Before: Jun 11 09:04:56 2010 GMT 
     9            Not After : Jun 11 09:04:56 2011 GMT 
     10        Subject: O=NDG, OU=Security, CN=localhost 
    1111        Subject Public Key Info: 
    1212            Public Key Algorithm: rsaEncryption 
     
    3636                SSL Client, SSL Server, S/MIME, Object Signing 
    3737    Signature Algorithm: md5WithRSAEncryption 
    38         8b:8c:45:03:bb:90:4a:70:54:28:69:b7:02:3e:50:95:12:10: 
    39         ef:c7:d4:48:c2:56:be:7a:4d:0a:6e:28:9f:07:4d:71:8c:01: 
    40         fc:e0:e0:dd:6e:ef:5a:d7:b0:0c:df:14:be:af:e4:20:11:4c: 
    41         ca:9b:4b:ae:ce:4b:0f:1f:46:b0:57:74:e0:86:ff:94:b2:27: 
    42         0b:2a:7b:e9:09:d5:2b:72:14:fe:99:5c:66:12:87:31:2f:e0: 
    43         7b:5c:47:b5:52:09:bb:18:09:d8:0a:c2:95:8e:bf:23:e6:ac: 
    44         0d:ea:48:19:c8:11:e6:8f:da:10:d2:cd:a2:de:72:e7:b1:75: 
    45         c0:d8 
     38        70:9e:28:be:0e:7e:b2:af:0b:95:e9:60:ea:1b:51:bc:02:76: 
     39        f3:67:69:47:ba:99:a1:4e:0f:2f:cb:2c:e8:ac:0e:20:b8:dd: 
     40        e0:70:9f:d0:5b:a6:5f:cd:42:3f:a6:aa:98:ef:f8:39:4a:ac: 
     41        79:8d:71:79:a4:98:19:00:e4:87:34:e6:c4:f6:8d:b5:d2:c3: 
     42        cf:45:77:e7:54:c9:3a:81:b6:47:da:ce:71:ba:79:4c:e2:d5: 
     43        40:44:b1:55:b6:a7:7b:57:31:43:fb:8c:58:f3:83:d3:68:e2: 
     44        5c:a4:30:2c:cc:c2:b0:e5:3f:84:18:2b:34:f6:39:50:a0:61: 
     45        13:28 
    4646-----BEGIN CERTIFICATE----- 
    47 MIICmDCCAgGgAwIBAgICAQcwDQYJKoZIhvcNAQEEBQAwLzEMMAoGA1UEChMDTkRH 
    48 MQ0wCwYDVQQLEwRCQURDMRAwDgYDVQQDEwdUZXN0IENBMB4XDTA5MDYwOTA5Mjgz 
    49 N1oXDTEwMDYwOTA5MjgzN1owWTELMAkGA1UEBhMCVUsxFDASBgNVBAgTC094Zm9y 
    50 ZHNoaXJlMQ0wCwYDVQQKEwRCQURDMREwDwYDVQQLEwhTZWN1cml0eTESMBAGA1UE 
    51 AxMJbG9jYWxob3N0MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAwOCU 
    52 wunA35Y2uk0OP7xBUXtP/tiCR1L4Nlc1FTuDd7qEqqNI8AMLWrcxQI0/hwWeBsZy 
    53 H8p97XM80HZNOzKJ5x9bhCe/i3IJKtRAjSzEwyNobPRiVajgLorItF+/4RjXaqYa 
    54 kG3mgxcQOpW12g1EP9/7bMWevx0EXxwWzp73nYH4/spDgl9ryHAX+OjzdNn7rBSv 
    55 mY/9863ifo3zvYkV8DnqUXwpgYy8umNraeDBRi8nk4OFvou7qrh2w+yK9lDhw5Ce 
    56 Rx0ZaEBiWROL6+iJZCDso7fnso+Y8mS0qm7Q8XP86u0ZGWeYEfWVynYLx0M1PFMj 
    57 tWewtSZZ0cU+StFw3QIDAQABoxUwEzARBglghkgBhvhCAQEEBAMCBPAwDQYJKoZI 
    58 hvcNAQEEBQADgYEAi4xFA7uQSnBUKGm3Aj5QlRIQ78fUSMJWvnpNCm4onwdNcYwB 
    59 /ODg3W7vWtewDN8Uvq/kIBFMyptLrs5LDx9GsFd04Ib/lLInCyp76QnVK3IU/plc 
    60 ZhKHMS/ge1xHtVIJuxgJ2ArClY6/I+asDepIGcgR5o/aENLNot5y57F1wNg= 
     47MIICdzCCAeCgAwIBAgIBAjANBgkqhkiG9w0BAQQFADAzMQwwCgYDVQQKEwNOREcx 
     48ETAPBgNVBAsTCFNlY3VyaXR5MRAwDgYDVQQDEwdUZXN0IENBMB4XDTEwMDYxMTA5 
     49MDQ1NloXDTExMDYxMTA5MDQ1NlowNTEMMAoGA1UEChMDTkRHMREwDwYDVQQLEwhT 
     50ZWN1cml0eTESMBAGA1UEAxMJbG9jYWxob3N0MIIBIjANBgkqhkiG9w0BAQEFAAOC 
     51AQ8AMIIBCgKCAQEAwOCUwunA35Y2uk0OP7xBUXtP/tiCR1L4Nlc1FTuDd7qEqqNI 
     528AMLWrcxQI0/hwWeBsZyH8p97XM80HZNOzKJ5x9bhCe/i3IJKtRAjSzEwyNobPRi 
     53VajgLorItF+/4RjXaqYakG3mgxcQOpW12g1EP9/7bMWevx0EXxwWzp73nYH4/spD 
     54gl9ryHAX+OjzdNn7rBSvmY/9863ifo3zvYkV8DnqUXwpgYy8umNraeDBRi8nk4OF 
     55vou7qrh2w+yK9lDhw5CeRx0ZaEBiWROL6+iJZCDso7fnso+Y8mS0qm7Q8XP86u0Z 
     56GWeYEfWVynYLx0M1PFMjtWewtSZZ0cU+StFw3QIDAQABoxUwEzARBglghkgBhvhC 
     57AQEEBAMCBPAwDQYJKoZIhvcNAQEEBQADgYEAcJ4ovg5+sq8Llelg6htRvAJ282dp 
     58R7qZoU4PL8ss6KwOILjd4HCf0FumX81CP6aqmO/4OUqseY1xeaSYGQDkhzTmxPaN 
     59tdLDz0V351TJOoG2R9rOcbp5TOLVQESxVbane1cxQ/uMWPOD02jiXKQwLMzCsOU/ 
     60hBgrNPY5UKBhEyg= 
    6161-----END CERTIFICATE----- 
  • TI12-security/trunk/MyProxyClient/myproxy/test/test_myproxyclient.py

    r6919 r6981  
    1515import unittest 
    1616import os 
    17 import sys 
    1817from getpass import getpass 
    19 import traceback 
    2018from os import path 
    2119 
     
    237235    HOSTCERT_FILENAME = 'localhost.crt' 
    238236    HOSTCERT_FILEPATH = mkPath(HOSTCERT_FILENAME) 
    239     HOSTCERT_DN = '/C=UK/ST=Oxfordshire/O=BADC/OU=Security/CN=localhost' 
     237    HOSTCERT_DN = '/O=NDG/OU=Security/CN=localhost' 
    240238     
    241239    def test01EnvironmentVarsSet(self): 
     
    307305                del os.environ[MyProxyClient.MYPROXY_SERVER_DN_ENVVARNAME] 
    308306         
     307            serverName = os.environ.get(MyProxyClient.MYPROXY_SERVER_ENVVARNAME) 
     308            if serverName is not None: 
     309                del os.environ[MyProxyClient.MYPROXY_SERVER_ENVVARNAME] 
     310                 
    309311            client = MyProxyClient() 
    310312              
     
    340342             
    341343        finally: 
    342             if serverDN: 
     344            if serverDN is not None: 
    343345                os.environ[MyProxyClient.MYPROXY_SERVER_DN_ENVVARNAME 
    344346                           ] = serverDN 
     347             
     348            if serverName is not None: 
     349                os.environ[MyProxyClient.MYPROXY_SERVER_ENVVARNAME 
     350                           ] = serverName 
     351                 
    345352                                         
    346353if __name__ == "__main__": 
  • TI12-security/trunk/MyProxyClient/setup.py

    r6931 r6981  
    2828setup( 
    2929    name =              'MyProxyClient', 
    30     version =           '1.1.1', 
     30    version =           '1.1.2', 
    3131    description =       'MyProxy Client', 
    3232    long_description =  ''' 
Note: See TracChangeset for help on using the changeset viewer.