Changeset 1849 for TI12-security


Ignore:
Timestamp:
11/12/06 10:03:30 (13 years ago)
Author:
pjkersha
Message:

Set default hostname in main and also temporarily set the input cert/key as
the ones used for SSL client authentication.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • TI12-security/trunk/python/Tests/MyProxyClient/m2CryptoMyPxClnt.py

    r1824 r1849  
    250250        context.load_cert(ownerCertFile, 
    251251                          keyfile=ownerKeyFile, 
    252                           callback=lambda *ar, **kw: passphrase) 
     252                          callback=lambda *ar, **kw: ownerPassphrase) 
    253253     
    254254        # Disable for compatibility with myproxy server (er, globus) 
     
    491491            username = pwd.getpwuid(os.geteuid())[0] 
    492492 
    493     myProxy = MyProxyClient(hostname=options.host,  
     493    hostname = options.host or os.environ.get('MYPROXY_SERVER') 
     494    myProxy = MyProxyClient(hostname=hostname, 
    494495                            port=options.port, 
    495496                            O='NDG', 
     
    528529                          options.certFile, 
    529530                          options.keyFile, 
     531                          ownerCertFile=options.certFile, 
     532                          ownerKeyFile=options.keyFile, 
     533                          ownerPassphrase=open('../tmp2').read().strip(), 
    530534                          lifetime=options.lifetime) 
    531535            
Note: See TracChangeset for help on using the changeset viewer.