Ignore:
Timestamp:
23/01/07 10:27:18 (13 years ago)
Author:
pjkersha
Message:

python/ndg.security.server/ndg/security/server/AttAuthority/server-config.tac:
Working soap_getAttCert and soap_getX509Cert. Added ndg.common.X509 imports.

python/ndg.security.server/ndg/security/server/AttAuthority/init.py:

  • allow ndg.common.X509 type input for getAttCert
  • fixes to getAttCert for new XMLSecDoc code usedto sign Attribute Certificate

python/conf/attAuthorityProperties.xml: "attCertLifeTime" -> "attCertLifetime"

python/ndg.security.test/ndg/security/test/AttAuthority/AttAuthorityClientTest.py:
fix to testGetAttCert to correctly print output

python/ndg.security.test/ndg/security/test/AttAuthority/attAuthorityProperties.xml:
properties file for test harness - fix "attCertLifeTime" -> "attCertLifetime"

python/ndg.security.test/ndg/security/test/MyProxy/myProxyClientTest.cfg:
swap username for tests.

python/ndg.security.common/ndg/security/common/XMLSec.py:

  • Added code to correctly parse certificate from ds:X509Certificate element of

signature.

  • replaced calls to getAttributeNodeNS with getAttributeNode as former was

returning None for some attributes?! getAttributeNode seems to be the more
correct call.

python/ndg.security.common/ndg/security/common/X509.py:

  • Fix so that new X509Cert object can be created from an M2Crypto one with the

m2CryptoX509 keyword to init. Also see method setFromM2Crypto.

  • Renamed to asString to toString in line with convention for other classes.
  • Added property "verifyingCert"

python/ndg.security.common/ndg/security/common/SQLObject.py:

  • fixed reference to attCert string conversion - do as implicit call to

AttCert?.str

Location:
TI12-security/trunk/python/ndg.security.test/ndg/security/test
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • TI12-security/trunk/python/ndg.security.test/ndg/security/test/AttAuthority/AttAuthorityClientTest.py

    r2017 r2028  
    8383            raise "Error reading certificate file \"%s\": %s" % \ 
    8484                                    (ioErr.filename, ioErr.strerror) 
    85         import pdb;pdb.set_trace() 
     85 
    8686        # Make attribute certificate request 
    8787        attCert = self.clnt.getAttCert(userCert=userCertTxt) 
    88         return attCert 
     88        print "Attribute Certificate: \n\n:" + str(attCert) 
    8989 
    9090 
  • TI12-security/trunk/python/ndg.security.test/ndg/security/test/AttAuthority/attAuthorityProperties.xml

    r2017 r2028  
    33    <name>Test NDG Data Provider</name> 
    44    <keyFile>$NDGSEC_AA_UNITTEST_DIR/aa-key.pem</keyFile> 
    5     <keyPwd></keyPwd> 
     5    <keyPwd>Junk</keyPwd> 
    66    <certFile>$NDGSEC_AA_UNITTEST_DIR/aa-cert.pem</certFile> 
    77    <caCertFile>$NDGSEC_AA_UNITTEST_DIR/cacert.pem</caCertFile> 
    8     <attCertLifeTime>28800</attCertLifeTime> 
     8    <attCertLifetime>28800</attCertLifetime> 
    99        <attCertNotBeforeOff>0</attCertNotBeforeOff> 
    1010    <attCertFilePfx>ac-</attCertFilePfx> 
  • TI12-security/trunk/python/ndg.security.test/ndg/security/test/MyProxy/myProxyClientTest.cfg

    r2017 r2028  
    1111 
    1212[test1Store] 
    13 username: gabriel 
     13username: sstljakTestUser 
    1414passphrase: 
    1515certFile: ./userCert.pem 
     
    2020 
    2121[test2GetDelegation] 
    22 username: gabriel 
     22username: sstljakTestUser 
    2323passphrase: 
    2424 
    2525[test3Info] 
    26 username: gabriel 
     26username: sstljakTestUser 
    2727ownerCertFile: ./proxy-cert.pem 
    2828ownerKeyFile: ./proxy-key.pem 
     
    3030 
    3131[test4ChangePassphrase] 
    32 username: gabriel 
     32username: sstljakTestUser 
    3333ownerCertFile: ./proxy-cert.pem 
    3434ownerKeyFile: ./proxy-key.pem 
     
    3838 
    3939[test5Destroy] 
    40 username: gabriel 
     40username: sstljakTestUser 
    4141ownerCertFile: ./proxy-cert.pem 
    4242ownerKeyFile: ./proxy-key.pem 
Note: See TracChangeset for help on using the changeset viewer.