Changeset 3175 for TI12-security/trunk/python/ndg.security.test/ndg
- Timestamp:
- 04/01/08 11:13:51 (13 years ago)
- Location:
- TI12-security/trunk/python/ndg.security.test/ndg/security/test/attCert
- Files:
-
- 4 added
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
TI12-security/trunk/python/ndg.security.test/ndg/security/test/attCert/AttCertTest.py
r2909 r3175 176 176 self.attCert.signingKeyFilePath=self.cfg['test9Sign']['keyfile'] 177 177 178 try: 179 self.attCert.signingKeyPwd=self.cfg['test9Sign'].get('keypwd') or\ 180 getpass.getpass(prompt="\ntest9Sign private key password: ") 181 except KeyboardInterrupt: 182 self.fail("test9Sign: Aborting test") 183 return 184 178 signingKeyPwd = self.cfg['test9Sign'].get('keypwd') 179 if signingKeyPwd is None: 180 try: 181 self.attCert.signingKeyPwd = \ 182 getpass.getpass(prompt="\ntest9Sign private key password: ") 183 except KeyboardInterrupt: 184 self.fail("test9Sign: Aborting test") 185 return 186 else: 187 self.attCert.signingKeyPwd = signingKeyPwd 188 185 189 self.attCert.applyEnvelopedSignature() 186 190 print 'test9Sign: \n\n%s' % self.attCert … … 223 227 self.cfg['test13IsValidStressTest']['keyfile'] 224 228 225 try:226 self.attCert.signingKeyPwd = \227 self.cfg['test13IsValidStressTest'].get('keypwd') or \228 229 signingKeyPwd = self.cfg['test13IsValidStressTest'].get('keypwd') 230 if signingKeyPwd is None: 231 try: 232 self.attCert.signingKeyPwd = getpass.getpass(\ 229 233 prompt="\ntest13IsValidStressTest private key password: ") 230 except KeyboardInterrupt: 231 self.fail("test13IsValidStressTest: Aborting test") 232 return 233 234 except KeyboardInterrupt: 235 self.fail("test13IsValidStressTest: Aborting test") 236 return 237 else: 238 self.attCert.signingKeyPwd = signingKeyPwd 239 234 240 import base64 235 241 for i in range(0, int(self.cfg['test13IsValidStressTest']['nruns'])): -
TI12-security/trunk/python/ndg.security.test/ndg/security/test/attCert/attCertTest.cfg
r2746 r3175 10 10 11 11 [test9Sign] 12 certFile: ./ cert.pem13 keyFile: ./ key.pem12 certFile: ./test.crt 13 keyFile: ./test.key 14 14 filePath: ./ac-signed.xml 15 #keyPwd:15 keyPwd: 16 16 17 17 [test10Write] … … 22 22 23 23 [test12IsValid] 24 certFilePathList: ./ cacert.pem24 certFilePathList: ./ndg-test-ca.crt 25 25 26 26 [test13IsValidStressTest] 27 27 # First cert is added to the signature, both certs are used in the 28 28 # verification 29 certFilepathlist: ./ cert.pem ./cacert.pem30 keyFile: ./ key.pem31 #keyPwd:32 nruns: 3029 certFilepathlist: ./test.crt ./ndg-test-ca.crt 30 keyFile: ./test.key 31 keyPwd: 32 nruns: 10 33 33 34 34 [test14IsValidSignature] 35 certFilePathList: ./ cacert.pem35 certFilePathList: ./ndg-test-ca.crt 36 36 filePath: ./ac.xml 37 37
Note: See TracChangeset
for help on using the changeset viewer.