Changeset 3199 for TI12-security
- Timestamp:
- 11/01/08 10:29:10 (13 years ago)
- Location:
- TI12-security/trunk/python
- Files:
-
- 1 added
- 10 edited
Legend:
- Unmodified
- Added
- Removed
-
TI12-security/trunk/python/ndg.security.server/ndg/security/server/conf/attAuthorityProperties.xml
r3135 r3199 25 25 <keyFile>$NDGSEC_DIR/conf/certs/aa-key.pem</keyFile> 26 26 <keyPwd></keyPwd> 27 <!-- 28 CA Certificates used to verify X.509 certs used in peer SOAP messages, 29 and Attribute Certificates. 30 31 The CA certificates of other NDG trusted sites should go here. 32 --> 27 33 <caCertFileList> 28 34 <caCertFile>$NDGSEC_DIR/conf/certs/cacert.pem</caCertFile> -
TI12-security/trunk/python/ndg.security.server/ndg/security/server/conf/sessionMgrProperties.xml
r3145 r3199 28 28 <!-- 29 29 CA Certificates used to verify X.509 certs used in peer SOAP messages, 30 SSL connections and Attribute Certificates 30 and Attribute Certificates. 31 32 The CA certificates of other NDG trusted sites should go here. 31 33 --> 32 34 <caCertFileList> -
TI12-security/trunk/python/ndg.security.test/ndg/security/test/attCert/AttCertTest.py
r3178 r3199 226 226 '''test12IsValid: check signature of XML document''' 227 227 self.test11Read() 228 self.attCert.certFilePathList = \229 self.cfg['test12IsValid']['certfilepathlist'].split() 228 self.attCert.certFilePathList = [xpdVars(file) for file in \ 229 self.cfg['test12IsValid']['certfilepathlist'].split()] 230 230 self.attCert.isValid(raiseExcep=True) 231 231 print 'test12IsValid: passed' … … 238 238 self.test6aSet() 239 239 240 self.attCert.certFilePathList = \241 self.cfg['test13IsValidStressTest']['certfilepathlist'].split() 240 self.attCert.certFilePathList = [xpdVars(file) for file in \ 241 self.cfg['test13IsValidStressTest']['certfilepathlist'].split()] 242 242 self.attCert.signingKeyFilePath = \ 243 243 xpdVars(self.cfg['test13IsValidStressTest']['keyfile']) -
TI12-security/trunk/python/ndg.security.test/ndg/security/test/attCert/ac.xml
r3178 r3199 9 9 <userId>/O=NDG/OU=BADC/CN=pjkershaw</userId> 10 10 <validity> 11 <notBefore>2008 01 04 15 45 58</notBefore>12 <notAfter>2008 01 04 23 45 58</notAfter>11 <notBefore>2008 01 10 15 26 32</notBefore> 12 <notAfter>2008 01 10 23 26 32</notAfter> 13 13 </validity> 14 14 <attributes> … … 27 27 <provenance>original</provenance> 28 28 </acInfo> 29 <ds:Signature><ds:SignedInfo><ds:CanonicalizationMethod Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"><ec:InclusiveNamespaces PrefixList="ds"></ec:InclusiveNamespaces></ds:CanonicalizationMethod><ds:SignatureMethod Algorithm="http://www.w3.org/2000/09/xmldsig#rsa-sha1"></ds:SignatureMethod><ds:Reference URI=""><ds:Transforms><ds:Transform Algorithm="http://www.w3.org/2000/09/xmldsig#enveloped-signature"></ds:Transform><ds:Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"><ec:InclusiveNamespaces PrefixList="xmlns"></ec:InclusiveNamespaces></ds:Transform></ds:Transforms><ds:DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1"></ds:DigestMethod><ds:DigestValue> b9+0xXj/zAUBcFXtai4zryJ2ZZ4=</ds:DigestValue></ds:Reference></ds:SignedInfo><ds:SignatureValue>lxaiZbOMjsGwmIPkY2kO6YArGkhWUInJDy/QXRSMTXTioUfSNWqcfmsIME3ZatR5gYAOfjo4rEt+30 sV5YwE9T6Q2T+j7WkTRMez+gLu8kDQwPSZMWHcNAzyf50H2xBTbnOXrf1mS6No25JNMtPrvX7+2+ 31 hYe+c3o62HyDUwu2rNWGudwTfCaYydBrdv/64jhQYQDInM5cOnJl6Azb8XkH0YwOVn1QQSt+xDVN 32 1u2Pws0Bo1piK91hDmqizpmy/fFnSFCT71zrvpB7D6EV6a9SMSogVhcXq/rRMQl2j/lyMZcnoWHC 33 2aFcQ0u+0Rg5X9j6nFkmzIom+Gd5S1HAbM0f4g==</ds:SignatureValue><ds:KeyInfo><ds:X509Data><ds:X509Certificate>MIICazCCAdSgAwIBAgICAPcwDQYJKoZIhvcNAQEEBQAwLzEMMAoGA1UEChMDTkRH29 <ds:Signature><ds:SignedInfo><ds:CanonicalizationMethod Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"><ec:InclusiveNamespaces PrefixList="ds"></ec:InclusiveNamespaces></ds:CanonicalizationMethod><ds:SignatureMethod Algorithm="http://www.w3.org/2000/09/xmldsig#rsa-sha1"></ds:SignatureMethod><ds:Reference URI=""><ds:Transforms><ds:Transform Algorithm="http://www.w3.org/2000/09/xmldsig#enveloped-signature"></ds:Transform><ds:Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"><ec:InclusiveNamespaces PrefixList="xmlns"></ec:InclusiveNamespaces></ds:Transform></ds:Transforms><ds:DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1"></ds:DigestMethod><ds:DigestValue>srClFxmtD9f6gOox0fewjJ+5VBg=</ds:DigestValue></ds:Reference></ds:SignedInfo><ds:SignatureValue>Djy+IKg94DRZSmzbYD1CIudKzoiOKOVMxOQOF6un5+N1jgormdEUbS0FwiHBgCl2QgF59MuBPNHM 30 YtCOyuJX29+mIHlXATcMDZb7i62uXYKsIzBHDkN6wWlVaYlJvGFCmtWpJcSFpKlHigLfeO8GXEEg 31 A8iHfaoj9G/YMvxwL9WrxmrFOOq//kBeCPUyRBhwlmFf6ZRAEP/O/wh9BfBQZ0J99G8WETwpEznI 32 Ui20MJG7jjHmUD4GnK/h7MsajvrH9m48HHp/f9uVaAjGWJHTnDpVWBH4ueBGnsIsiyZHSgUz37pa 33 0FFB01OjNTeuS+OZ/4V/IScIWQrBFcDA6tOVkw==</ds:SignatureValue><ds:KeyInfo><ds:X509Data><ds:X509Certificate>MIICazCCAdSgAwIBAgICAPcwDQYJKoZIhvcNAQEEBQAwLzEMMAoGA1UEChMDTkRH 34 34 MQ0wCwYDVQQLEwRCQURDMRAwDgYDVQQDEwdUZXN0IENBMB4XDTA4MDEwNDEwMTk0 35 35 N1oXDTA5MDEwMzEwMTk0N1owLDEMMAoGA1UEChMDTkRHMQ0wCwYDVQQLEwRCQURD -
TI12-security/trunk/python/ndg.security.test/ndg/security/test/attCert/attCertTest.cfg
r3175 r3199 10 10 11 11 [test9Sign] 12 certFile: ./test.crt13 keyFile: ./test.key14 filePath: ./ac-signed.xml12 certFile: $NDGSEC_ATTCERT_UNITTEST_DIR/test.crt 13 keyFile: $NDGSEC_ATTCERT_UNITTEST_DIR/test.key 14 filePath: $NDGSEC_ATTCERT_UNITTEST_DIR/ac-signed.xml 15 15 keyPwd: 16 16 17 17 [test10Write] 18 filePath: ./ac.xml18 filePath: $NDGSEC_ATTCERT_UNITTEST_DIR/ac.xml 19 19 20 20 [test11Read] 21 filePath: ./ac.xml21 filePath: $NDGSEC_ATTCERT_UNITTEST_DIR/ac.xml 22 22 23 23 [test12IsValid] 24 certFilePathList: ./ndg-test-ca.crt24 certFilePathList: $NDGSEC_ATTCERT_UNITTEST_DIR/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: ./test.crt ./ndg-test-ca.crt30 keyFile: ./test.key29 certFilepathlist: $NDGSEC_ATTCERT_UNITTEST_DIR/test.crt $NDGSEC_ATTCERT_UNITTEST_DIR/ndg-test-ca.crt 30 keyFile: $NDGSEC_ATTCERT_UNITTEST_DIR/test.key 31 31 keyPwd: 32 32 nruns: 10 33 33 34 34 [test14IsValidSignature] 35 certFilePathList: ./ndg-test-ca.crt36 filePath: ./ac.xml35 certFilePathList: $NDGSEC_ATTCERT_UNITTEST_DIR/ndg-test-ca.crt 36 filePath: $NDGSEC_ATTCERT_UNITTEST_DIR/ac.xml 37 37 38 38 -
TI12-security/trunk/python/ndg.security.test/ndg/security/test/sessionMgr/README
r3192 r3199 41 41 CA certificate in the list of trusted CA files in the respective Attribute 42 42 Authority configuration files: 43 i) Copy the CA certificate from your MyProxy host computer to the ca/ sub- 44 directory under THIS directory. 45 46 The file will be located on the MyProxy server as e.g. 47 48 /etc/grid-security/certificates/abcdef01.0 49 50 The exact name of the CA certificate file will be unique to your installation. 51 In the above, it is "abcdef01.0". 52 43 53 i) edit 'caCertFileList' element in 44 54 ../attAuthority/siteAAttAuthorityProperties.xml and add a new entry for the … … 48 58 <caCertFileList> 49 59 <caCertFile>$NDGSEC_AACLNT_UNITTEST_DIR/ca/ndg-test-ca.crt</caCertFile> 50 --> <caCertFile> /etc/grid-security/certificates/abcdef01.0</caCertFile>60 --> <caCertFile>$NDGSEC_AACLNT_UNITTEST_DIR/ca/abcdef01.0</caCertFile> 51 61 </caCertFileList> 52 62 -8<--------------------------------------------------------------------------- 53 63 The exact name of the CA certificate file will be unique to your installation. 54 64 In the above, it is "abcdef01.0". Ammend to the correct setting. Edit 55 ../attAuthority/site AAttAuthorityProperties.xml and in the same way add a new65 ../attAuthority/siteBAttAuthorityProperties.xml and in the same way add a new 56 66 entry for the MyProxy CA certificate. 57 67 -
TI12-security/trunk/python/ndg.security.test/ndg/security/test/sessionMgrClient/README
r3196 r3199 47 47 directory is ../attAuthority. 48 48 49 The Attribute Authorities a ccept requests from this Session Manager50 authenticated based on the MyProxy user credentials used in the unit test51 test1Connect. In order to accept these, the Attribute Authorities must be52 configured to trust the MyProxy CA. This can be done by including the MyProxy 53 CA certificate in the list of trusted CA files in the respective Attribute 49 The Attribute Authorities and Session Manager accept client requests 50 authenticated based on the MyProxy user credentials obtained in the unit test 51 test1Connect. In order to accept these, these services must be configured to 52 trust the MyProxy CA. This can be done by including the MyProxy CA certificate 53 in the list of trusted CA files in the respective Session Manager and Attribute 54 54 Authority configuration files: 55 i) edit 'caCertFileList' element in 56 ../attAuthority/siteAAttAuthorityProperties.xml and add a new entry for the 57 MyProxy CA: 55 i) Copy the CA certificate from your MyProxy host computer to the ca/ sub- 56 directory under THIS directory. 57 58 The file will be located on the MyProxy server as e.g. 59 60 /etc/grid-security/certificates/abcdef01.0 61 62 The exact name of the CA certificate file will be unique to your installation. 63 In the above, it is "abcdef01.0". 64 65 ii) edit 'caCertFileList' element in sessionManagerProperties.xml and add a 66 new entry for the MyProxy CA: 58 67 59 68 -8<--------------------------------------------------------------------------- 60 69 <caCertFileList> 61 70 <caCertFile>$NDGSEC_AACLNT_UNITTEST_DIR/ca/ndg-test-ca.crt</caCertFile> 62 --> <caCertFile> /etc/grid-security/certificates/abcdef01.0</caCertFile>71 --> <caCertFile>$NDGSEC_AACLNT_UNITTEST_DIR/ca/abcdef01.0</caCertFile> 63 72 </caCertFileList> 64 73 -8<--------------------------------------------------------------------------- 65 The exact name of the CA certificate file will be unique to your installation. 66 In the above, it is "abcdef01.0". Ammend to the correct setting. Edit67 ../attAuthority/site AAttAuthorityProperties.xml andin the same way add a new74 Ammend to the correct setting. Edit 75 ../attAuthority/siteAAttAuthorityProperties.xml and 76 ../attAuthority/siteBAttAuthorityProperties.xml in the same way add a new 68 77 entry for the MyProxy CA certificate. 69 78 -
TI12-security/trunk/python/ndg.security.test/ndg/security/test/sessionMgrClient/SessionMgrClientTest.py
r3196 r3199 154 154 (username, self.sessID) 155 155 156 creds = self.issuingCert or '' + self.userCert + self.userPriKey156 creds = '\n'.join(self.issuingCert or '',self.userCert,self.userPriKey) 157 157 open(mkPath("user.creds"), "w").write(creds) 158 158 … … 253 253 print "Attribute Certificate:\n%s" % attCert 254 254 attCert.filePath = \ 255 self.cfg['test6GetAttCertWithSessID']['acoutfilepath']255 xpdVars(self.cfg['test6GetAttCertWithSessID']['acoutfilepath']) 256 256 attCert.write() 257 257 … … 304 304 305 305 # Use output from test6GetAttCertWithSessID! 306 extACFilePath = \307 self.cfg['test6cGetAttCertWithExtAttCertListWithSessID']['extacfilepath'] 306 extACFilePath = xpdVars(\ 307 self.cfg['test6cGetAttCertWithExtAttCertListWithSessID']['extacfilepath']) 308 308 extAttCert = open(extACFilePath).read() 309 309 -
TI12-security/trunk/python/ndg.security.test/ndg/security/test/sessionMgrClient/sessionMgrProperties.xml
r3196 r3199 24 24 <caCertFileList> 25 25 <caCertFile>$NDGSEC_SMCLNT_UNITTEST_DIR/ca/ndg-test-ca.crt</caCertFile> 26 <!-- 27 To also trust certificates issued from your MyProxy CA, replace 28 "abcdef01.0" with the unique name for your CA certificate and uncomment 29 the following line: 30 <caCertFile>$NDGSEC_SMCLNT_UNITTEST_DIR/ca/abcdef01.0</caCertFile> 31 --> 26 32 </caCertFileList> 27 33 <certFile>$NDGSEC_SMCLNT_UNITTEST_DIR/sm.crt</certFile> -
TI12-security/trunk/python/ndg.security.test/setup.py
r3196 r3199 31 31 'siteA-aa.key', 32 32 'siteB-aa.crt', 33 'siteB-aa.key' 33 'siteB-aa.key', 34 34 'README'], 35 35 'ndg.security.test.attAuthority.ca': ['*.crt'], … … 40 40 'ndg-test-ca.crt', 41 41 'README'], 42 'ndg.security.test.ca': ['*.xml', '*.cfg'], 42 'ndg.security.test.ca': ['*.xml', '*.cfg', 'README'], 43 'ndg.security.test.gatekeeper': ['README'], 44 'ndg.security.test.Log': ['README'], 43 45 'ndg.security.test.myProxy': ['*.xml', 44 46 '*.cfg', 45 47 'user.crt', 46 48 'user.key', 47 'ndg-test-ca.crt', 'openssl.conf', 49 'ndg-test-ca.crt', 50 'openssl.conf', 48 51 'Makefile', 49 52 'README'], … … 57 60 'sm.key', 58 61 'user.crt', 59 'user.key'], 62 'user.key', 63 'README'], 60 64 'ndg.security.test.sessionMgr.ca': ['*.crt'], 61 65 'ndg.security.test.sessionMgrClient': ['*.xml',
Note: See TracChangeset
for help on using the changeset viewer.