Changeset 2158 for TI12-security


Ignore:
Timestamp:
13/02/07 14:12:38 (13 years ago)
Author:
pjkersha
Message:

python/ndg.security.common/ndg/security/common/ca/init.py,
python/ndg.security.server/ndg/security/server/MyProxy.py,
python/ndg.security.server/ndg/security/server/ca/init.py: simplify settings for
_createCertReq DN default.

python/ndg.security.test/ndg/security/test/ca/caClientTest.cfg: altered connection
settings.

python/ndg.security.test/ndg/security/test/ca/caClientTest.py: try passing in a
grid-cert-request generated request for temporary testing.

Location:
TI12-security/trunk/python
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • TI12-security/trunk/python/ndg.security.common/ndg/security/common/ca/__init__.py

    r2145 r2158  
    237237        x509Name = X509.X509_Name() 
    238238        x509Name.CN = CN 
    239         x509Name.OU = defaultReqDN.get('0.organizationalUnitName') or \ 
    240                         defaultReqDN['0U'] 
    241         x509Name.O = defaultReqDN.get('0.organizationName') or \ 
    242                         defaultReqDN['0'] 
     239        x509Name.OU = defaultReqDN['OU'] 
     240        x509Name.O = defaultReqDN['O'] 
    243241                         
    244242        req.set_subject_name(x509Name) 
  • TI12-security/trunk/python/ndg.security.server/ndg/security/server/MyProxy.py

    r2148 r2158  
    384384        x509Name = X509.X509_Name() 
    385385        x509Name.CN = CN 
    386         x509Name.OU = defaultReqDN.get('0.organizationalUnitName') or \ 
    387                         defaultReqDN['OU'] 
    388         x509Name.O = defaultReqDN.get('0.organizationName') or \ 
    389                         defaultReqDN['O'] 
     386        x509Name.OU = defaultReqDN['OU'] 
     387        x509Name.O = defaultReqDN['O'] 
    390388                         
    391389        req.set_subject_name(x509Name) 
  • TI12-security/trunk/python/ndg.security.server/ndg/security/server/ca/__init__.py

    r2157 r2158  
    494494        x509Name = X509.X509_Name() 
    495495        x509Name.CN = CN 
    496         x509Name.OU = defaultReqDN.get('0.organizationalUnitName') or \ 
    497                         defaultReqDN['0U'] 
    498         x509Name.O = defaultReqDN.get('0.organizationName') or \ 
    499                         defaultReqDN['0'] 
     496        x509Name.OU = defaultReqDN['OU'] 
     497        x509Name.O = defaultReqDN['O'] 
    500498                         
    501499        req.set_subject_name(x509Name) 
  • TI12-security/trunk/python/ndg.security.test/ndg/security/test/ca/caClientTest.cfg

    r2145 r2158  
    1010# $Id:$ 
    1111[setUp] 
    12 uri = https://localhost:5800/CertificateAuthority 
     12#uri = https://localhost:5800/CertificateAuthority 
     13uri = https://glue.badc.rl.ac.uk:43000/CertificateAuthority 
    1314 
    1415# May be omitted to use OU and O instead 
     
    2930 
    3031[test1IssueCert] 
    31 CN = BugsBunny  
     32CN = BugsBunny2  
    3233# Comment out to prompt for on tty. 
    3334#passphrase = 
  • TI12-security/trunk/python/ndg.security.test/ndg/security/test/ca/caClientTest.py

    r2145 r2158  
    6767        """Issue a new certificate""" 
    6868        import pdb;pdb.set_trace() 
     69         
    6970        cert,priKey = self.clnt.issueCert(CN=self.cfg['test1IssueCert']['cn']) 
     71#        from M2Crypto import X509 
     72#        cert,priKey = self.clnt.issueCert(\ 
     73#                      certReq=X509.load_request('tmp-cert_request.pem.alt')) 
    7074        print "Issuing new cert '%s'" % self.cfg['test1IssueCert']['cn'] 
    7175         
Note: See TracChangeset for help on using the changeset viewer.