Changeset 1778


Ignore:
Timestamp:
28/11/06 17:01:57 (13 years ago)
Author:
pjkersha
Message:

server/SessionMgr/server-config.tac: added twisted SSLServer.
test/SessionMgrClientTest.py: testing SSL connection to SessionMgr? - appears to be a problem with
the socket library. It doesn't have the ssl module?? - update version of python
common/AttAuthorityIO.py, common/LogIO.py and common/SessionMgrIO.py: these are not needed anymore as
ZSI will do the required XML formatting of SOAP messages.

Location:
TI12-security/trunk/python
Files:
3 deleted
3 edited

Legend:

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

    r1701 r1778  
    5757] 
    5858 
    59 #_pkgs = ['ndg',  
    60 #         'ndg.security',  
    61 #         'ndg.security.server',  
    62 #         'ndg.security.client'] 
    63 # 
    64 #_namespacePkgs = ['ndg',  
    65 #                 'ndg.security',  
    66 #                 'ndg.security.server',  
    67 #                 'ndg.security.client'] 
    68 import pdb;pdb.set_trace() 
    69 _serverPkgs = ['ndg.security.server.%s' % \ 
     59_pkgs = ['ndg.security.server.%s' % \ 
    7060         pkg for pkg in find_packages('ndg/security/server')] 
    71 _clientPkgs = ['ndg.security.client.%s' % \ 
    72          pkg for pkg in find_packages('ndg/security/client')] 
    73 _pkg = ['ndg.security.server'] 
    74 _namespacePkgs = _pkgs 
    75  
    76 _entryPoints = \ 
    77 { 
    78     'console_scripts': ['ndgSessionClient = ndg.security.client.ndgSessionClient:main'] 
    79 } 
     61_namespacePkgs = ['ndg', 'ndg.security'] 
    8062 
    8163setupKw = \ 
    8264{ 
    83     'name':                     'ndg-security', 
     65    'name':                     'ndg.security.server', 
    8466    'version':                  '0.7.2', 
    85     'description':              'NERC DataGrid Security Utilities', 
     67    'description':              'NERC DataGrid Security Server side Utilities', 
    8668    'long_description':         'Software for securing NDG resources', 
    8769    'author':                   'Philip Kershaw', 
  • TI12-security/trunk/python/ndg.security.server/ndg/security/server/SessionMgr/server-config.tac

    r1777 r1778  
    7777siteFactory = Site(root) 
    7878application = service.Application("ndgSecurityContainer") 
    79 port = internet.TCPServer(portNum, siteFactory)#, interface=hostname) 
     79 
     80# Try SSL 
     81from twisted.internet import ssl 
     82kw = {} 
     83priKeyFilePath = '../../../../../Tests/Junk2-key.pem' 
     84certFilePath = '../../../../../Tests/Junk2-cert.pem' 
     85ctxFactory = ssl.DefaultOpenSSLContextFactory(priKeyFilePath, certFilePath) 
     86port = internet.SSLServer(portNum, siteFactory, ctxFactory) 
     87 
     88#port = internet.TCPServer(portNum, siteFactory)#, interface=hostname) 
    8089port.setServiceParent(application) 
  • TI12-security/trunk/python/ndg.security.test/ndg/security/test/SessionMgrClientTest.py

    r1777 r1778  
    3232 
    3333        testConfig = {} 
    34         testConfig['smURI'] = 'http://localhost:5000/SessionManager' 
    35         testConfig['aaURI'] = 'http://localhost:5700/AttributeAuthority' 
     34        testConfig['smURI'] = 'https://localhost:5000/SessionManager' 
     35        testConfig['aaURI'] = 'https://localhost:5700/AttributeAuthority' 
    3636 
    3737         
     
    214214    def testGetX509Cert(self): 
    215215        "testGetX509Cert: return the Session Manager's X.509 Cert." 
     216        import pdb;pdb.set_trace() 
    216217        cert = self.clnt.getX509Cert() 
    217218                                              
Note: See TracChangeset for help on using the changeset viewer.