Changeset 3165


Ignore:
Timestamp:
18/12/07 16:44:26 (12 years ago)
Author:
pjkersha
Message:

security/python/ndg.security.test/ndg/security/test/wsSecurity: added certs and keys from test CA and made fix to echoServer.py to correctly read these from config file.

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

Legend:

Unmodified
Added
Removed
  • TI12-security/trunk/python/ndg.security.test/ndg/security/test/wsSecurity/client/echoClientTest.cfg

    r3122 r3165  
    99[setUp] 
    1010uri = http://localhost:7000/Echo 
    11 signingPriKeyFilePath = ./Junk-key.pem 
    12 signingPriKeyPwd = JunkJunk 
    13 signingCertFilePath = ./Junk-cert.pem 
    14 caCertFilePathList = ./cacert.pem 
     11signingPriKeyFilePath = ./clnt.key 
     12signingPriKeyPwd =  
     13signingCertFilePath = ./clnt.crt 
     14caCertFilePathList = ./ndg-test-ca.crt 
    1515 
    1616[test1Echo] 
  • TI12-security/trunk/python/ndg.security.test/ndg/security/test/wsSecurity/server/echoServer.cfg

    r3122 r3165  
    1111port = 7000 
    1212path = /Echo 
    13 signingPriKeyFilePath = ./Junk-key.pem 
    14 signingPriKeyPwd = JunkJunk 
    15 signingCertFilePath = ./Junk-cert.pem 
    16 caCertFilePathList = ./cacert.pem 
     13signingPriKeyFilePath = ./server.key 
     14signingPriKeyPwd =  
     15signingCertFilePath = ./server.crt 
     16caCertFilePathList = ./ndg-test-ca.crt 
  • TI12-security/trunk/python/ndg.security.test/ndg/security/test/wsSecurity/server/echoServer.py

    r3124 r3165  
    3333            pdb.set_trace() 
    3434             
    35         self.signatureHandler = wsSecurity.SignatureHandler(\ 
    36                                     signingCertFilePath=certFilePath, 
    37                                     signingPriKeyFilePath=priKeyFilePath, 
    38                                     signingPriKeyPwd=priKeyPwd, 
    39                                     caCertFilePathList=[caCertFilePath]) 
    4035        _EchoService.__init__(self, **kw) 
    4136         
     
    7671    port = cfg.getint('setUp', 'port') 
    7772    path = cfg.get('setUp', 'path') 
     73     
    7874    signingPriKeyFilePath = cfg.get('setUp', 'signingPriKeyFilePath') 
    7975    signingPriKeyPwd = cfg.get('setUp', 'signingPriKeyPwd') 
     
    8581    # Create the Inherited version of the server 
    8682    echo = EchoService(tracefile=sys.stdout) 
     83    echo.signatureHandler = wsSecurity.SignatureHandler(\ 
     84                                    signingCertFilePath=signingCertFilePath, 
     85                                    signingPriKeyFilePath=signingPriKeyFilePath, 
     86                                    signingPriKeyPwd=signingPriKeyPwd, 
     87                                    caCertFilePathList=caCertFilePathList) 
     88 
    8789    serviceContainer.setNode(echo, url=path) 
    8890     
Note: See TracChangeset for help on using the changeset viewer.