Added: airavata/sandbox/grid-tools/gridftp-client/certificates/dfcb9731.crl_url URL: http://svn.apache.org/viewvc/airavata/sandbox/grid-tools/gridftp-client/certificates/dfcb9731.crl_url?rev=1491628&view=auto ============================================================================== --- airavata/sandbox/grid-tools/gridftp-client/certificates/dfcb9731.crl_url (added) +++ airavata/sandbox/grid-tools/gridftp-client/certificates/dfcb9731.crl_url Mon Jun 10 22:28:20 2013 @@ -0,0 +1 @@ +http://www.nics.tennessee.edu/sites/www.nics.tennessee.edu/files/ca/dc75341f.crl
Added: airavata/sandbox/grid-tools/gridftp-client/certificates/dfcb9731.info.txt URL: http://svn.apache.org/viewvc/airavata/sandbox/grid-tools/gridftp-client/certificates/dfcb9731.info.txt?rev=1491628&view=auto ============================================================================== --- airavata/sandbox/grid-tools/gridftp-client/certificates/dfcb9731.info.txt (added) +++ airavata/sandbox/grid-tools/gridftp-client/certificates/dfcb9731.info.txt Mon Jun 10 22:28:20 2013 @@ -0,0 +1,11 @@ +# Information for /DC=EDU/DC=TENNESSEE/DC=NICS/O-National Institute for Computational Sciences/CN=MyProxy +# 2011-06-15 [email protected] +# +alias = MyProxy +url = http://www.nics.tennessee.edu/ca +ca_url = http://www.nics.tennessee.edu/sites/www.nics.tennessee.edu/files/ca/dc75341f.0 +crl_url = http://www.nics.tennessee.edu/sites/www.nics.tennessee.edu/files/ca/dc75341f.crl +email = [email protected] +sha1fp.0 = 86:60:78:60:20:7A:EF:B7:A1:21:9C:91:B2:75:26:32:8B:05:70:4D +status = nonaccredited:slcs +version = @VERSION@ Added: airavata/sandbox/grid-tools/gridftp-client/certificates/dfcb9731.nics-myproxy.cadesc URL: http://svn.apache.org/viewvc/airavata/sandbox/grid-tools/gridftp-client/certificates/dfcb9731.nics-myproxy.cadesc?rev=1491628&view=auto ============================================================================== --- airavata/sandbox/grid-tools/gridftp-client/certificates/dfcb9731.nics-myproxy.cadesc (added) +++ airavata/sandbox/grid-tools/gridftp-client/certificates/dfcb9731.nics-myproxy.cadesc Mon Jun 10 22:28:20 2013 @@ -0,0 +1,14 @@ +CA_NAME NICS MyProxy Certificate Authority +HOMEPAGE http://www.nics.tennessee.edu/ca +CONTACT [email protected] +HASH dc75341f +SIGNED_BY /DC=EDU/DC=TENNESSEE/DC=NICS/O=National Institute for COmputational Sciences/CN=MyProxy +SUBJECT /DC=EDU/DC=TENNESSEE/DC=NICS/O=National Institute for Computational Sciences/CN=MyProxy +MAY_SIGN /DC=EDU/DC=TENNESSEE/DC=NICS/O=National Institute for Computational Sciences/CN=* +CERTIFICATE_MD5 2F:11:B0:B7:F0:78:1F:9C:22:92:35:71:F9:20:E6:E6 +CERTIFICATE_SHA1 86:60:78:60:20:7A:EF:B7:A1:21:9C:91:B2:75:26:32:8B:05:70:4D +CERTIFICATE_URL http://www.nics.tennessee.edu/sites/www.nics.tennessee.edu/files/dc75341f.0 +SIGNING_POLICY_URL http://www.nics.tennessee.edu/sites/www.nics.tennessee.edu/files/dc75341f.signing_policy +CRL_URL http://www.nics.tennessee.edu/sites/www.nics.tennessee.edu/files/dc75341f.r0 +# CERT_BEGINS 2011-05-26 21:23:59 UTC +CERT_EXPIRES 2031-05-26 21:23:59 UTC Added: airavata/sandbox/grid-tools/gridftp-client/certificates/dfcb9731.signing_policy URL: http://svn.apache.org/viewvc/airavata/sandbox/grid-tools/gridftp-client/certificates/dfcb9731.signing_policy?rev=1491628&view=auto ============================================================================== --- airavata/sandbox/grid-tools/gridftp-client/certificates/dfcb9731.signing_policy (added) +++ airavata/sandbox/grid-tools/gridftp-client/certificates/dfcb9731.signing_policy Mon Jun 10 22:28:20 2013 @@ -0,0 +1,3 @@ +access_id_CA X509 '/DC=EDU/DC=TENNESSEE/DC=NICS/O=National Institute for Computational Sciences/CN=MyProxy' +pos_rights globus CA:sign +cond_subjects globus '/DC=EDU/DC=TENNESSEE/DC=NICS/O=National Institute for Computational Sciences/CN=*' Added: airavata/sandbox/grid-tools/gridftp-client/certificates/e580c4f9.0 URL: http://svn.apache.org/viewvc/airavata/sandbox/grid-tools/gridftp-client/certificates/e580c4f9.0?rev=1491628&view=auto ============================================================================== --- airavata/sandbox/grid-tools/gridftp-client/certificates/e580c4f9.0 (added) +++ airavata/sandbox/grid-tools/gridftp-client/certificates/e580c4f9.0 Mon Jun 10 22:28:20 2013 @@ -0,0 +1,21 @@ +-----BEGIN CERTIFICATE----- +MIIDczCCAlugAwIBAgIBADANBgkqhkiG9w0BAQUFADAuMQswCQYDVQQGEwJJVDEN +MAsGA1UEChMESU5GTjEQMA4GA1UEAxMHSU5GTiBDQTAeFw0wNjEwMDMxNDE2NDda +Fw0xNjEwMDMxNDE2NDdaMC4xCzAJBgNVBAYTAklUMQ0wCwYDVQQKEwRJTkZOMRAw +DgYDVQQDEwdJTkZOIENBMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA +zpWODoOVnUKpyikjyrdj+QpJuoJeKkqF4fbd6LrqeQL0dqAiluVR8D4y/T2Mqvsd +H/fg0s3EYZUDQZimcAmC3ammTX3rqXOz34GWLGpXoXAmUVKWPNFJo6rAEwhw3Sja +a8mEjMiZE/JigHN5RI8K6taKtjL/jE4XUTZOGbvlKsROxzJPM6bO4GJdYO+qhK9E +5HsbV699DYyukBfUB6ChtD6GDbcdPKUKwheni5j0v6smFjiBEb3VQg4O+uBWTHMP +116L9kPY+I7ojzXLuayMTd+6TXzunR33+v6h8AtLChcQRt4vj7oG/scTg3eSnFsq +oEO4D4IF9v481GJJwg58LwIDAQABo4GbMIGYMA8GA1UdEwEB/wQFMAMBAf8wDgYD +VR0PAQH/BAQDAgEGMB0GA1UdDgQWBBTRYvOzd3LILvvyeRpvN04nnxPVIDBWBgNV +HSMETzBNgBTRYvOzd3LILvvyeRpvN04nnxPVIKEypDAwLjELMAkGA1UEBhMCSVQx +DTALBgNVBAoTBElORk4xEDAOBgNVBAMTB0lORk4gQ0GCAQAwDQYJKoZIhvcNAQEF +BQADggEBAHjX0z+3P3JyQGIBI5aAXOS3NuDEf0MdqCLFIGsXjtvIm2kDSMSGQOg5 +uZnJLTAhaT+gX5eNkDdzhuuJEgW1FPGDy2If6zgD4T4EsS50E+L5BTNOG78UzF4H +9DGBlbrkD8VEug9RpxGusSweGGlnO6CT/U1Tb3XY5ZjIrMubh09UwmjK9nEIe3vC +RPInAkbmamteezpKOqC5Knj0ZpqU+CnWkuyYnjslX1e9O5lbupLTp5NOqZRCFn1i +iTjpoNefgqLE3sHedgb2P1vS8lO+EIhRnWgfN9qAHSqkQ+ZObxIfPJFdcluu8d/K +tXsFkKmmFuEHd0SrYpBh9ZCLDgq2x9Y= +-----END CERTIFICATE----- Added: airavata/sandbox/grid-tools/gridftp-client/certificates/e580c4f9.crl_url URL: http://svn.apache.org/viewvc/airavata/sandbox/grid-tools/gridftp-client/certificates/e580c4f9.crl_url?rev=1491628&view=auto ============================================================================== --- airavata/sandbox/grid-tools/gridftp-client/certificates/e580c4f9.crl_url (added) +++ airavata/sandbox/grid-tools/gridftp-client/certificates/e580c4f9.crl_url Mon Jun 10 22:28:20 2013 @@ -0,0 +1 @@ +http://security.fi.infn.it/CA/INFNCA_crl.pem Added: airavata/sandbox/grid-tools/gridftp-client/certificates/e580c4f9.signing_policy URL: http://svn.apache.org/viewvc/airavata/sandbox/grid-tools/gridftp-client/certificates/e580c4f9.signing_policy?rev=1491628&view=auto ============================================================================== --- airavata/sandbox/grid-tools/gridftp-client/certificates/e580c4f9.signing_policy (added) +++ airavata/sandbox/grid-tools/gridftp-client/certificates/e580c4f9.signing_policy Mon Jun 10 22:28:20 2013 @@ -0,0 +1,4 @@ +# @(#)$Id: 2f3fadf6.signing_policy,v 1.1 2006/10/10 10:13:18 pmacvsdg Exp $ +access_id_CA X509 '/C=IT/O=INFN/CN=INFN CA' +pos_rights globus CA:sign +cond_subjects globus '"/C=it/O=INFN/*" "/C=IT/O=INFN/*"' Added: airavata/sandbox/grid-tools/gridftp-client/certificates/e5cc84c2.0 URL: http://svn.apache.org/viewvc/airavata/sandbox/grid-tools/gridftp-client/certificates/e5cc84c2.0?rev=1491628&view=auto ============================================================================== --- airavata/sandbox/grid-tools/gridftp-client/certificates/e5cc84c2.0 (added) +++ airavata/sandbox/grid-tools/gridftp-client/certificates/e5cc84c2.0 Mon Jun 10 22:28:20 2013 @@ -0,0 +1,25 @@ +-----BEGIN CERTIFICATE----- +MIIEIDCCAwigAwIBAgIBAjANBgkqhkiG9w0BAQUFADBuMRMwEQYKCZImiZPyLGQB +GRMDRURVMRYwFAYKCZImiZPyLGQBGRMGVVRFWEFTMRQwEgYKCZImiZPyLGQBGRME +VEFDQzESMBAGA1UEChMJVVQtQVVTVElOMRUwEwYDVQQDEwxUQUNDIFJvb3QgQ0Ew +HhcNMDgxMDAyMDQwMjA0WhcNMTMxMDAxMDQwMjA0WjBxMRMwEQYKCZImiZPyLGQB +GRMDRURVMRYwFAYKCZImiZPyLGQBGRMGVVRFWEFTMRQwEgYKCZImiZPyLGQBGRME +VEFDQzESMBAGA1UEChMJVVQtQVVTVElOMRgwFgYDVQQDEw9UQUNDIENsYXNzaWMg +Q0EwggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQCbmMzgAdglOWoY9CQV +iNllCsS/wFIub2g7dZmiP7KJ0Fxz10DU6aBx5XkDeVe3iRje7nh9h1HTjnqNlMFh +Il8eQISktuvajhxywuKDsf6N1sxQ5VE4jBwPncwa4LIuCcA7ECDPZ2aZvrPOSca/ +cLHUBbi2z8aAq1vCHs5rGf0nl53E//bQY7Bbe6OpU2aY3MBDF1tK84+0eP9LLmhu ++dol2VKYbMgwRDG5kZ20TdHXtaTBgjyXNS+mMoGJdE07zG5Wax9AFxerH+2ab9EQ +BvEcIjFfxqurou7k/zu57Ye4d4TU3gq/09HYTfTh0gANB+daPjkNBm9CSSqQvxv9 +FsyTAgMAkGOjgcUwgcIwDwYDVR0TAQH/BAUwAwEB/zAdBgNVHQ4EFgQUbF3onuVy +e3rRG5n2jLbRoXSCBwQwHwYDVR0jBBgwFoAUjXUjaNFVmWzDph6G/N/EU+jlU8cw +DgYDVR0PAQH/BAQDAgEGMB0GA1UdEQQWMBSBEmNhQHRhY2MudXRleGFzLmVkdTBA +BgNVHR8EOTA3MDWgM6Axhi9odHRwOi8vd3d3LnRhY2MudXRleGFzLmVkdS9DQS9U +QUNDX1Jvb3RfQ1JMLmRlcjANBgkqhkiG9w0BAQUFAAOCAQEAb3jne8SKCsMHMKHX +6qh6V5xnkh8WmpIXdyXr7HRugVQT2XUjgdFs7yqBDz/cjhmzj4XkCoZNoZTD2jwT +cycTKD/tFUf6nuSu0GZQAWs1zL58oSse2YSYcMoqeL9I/4eDNgi7b+gij3oUn1aR +3JJnr0ImHnsZrfGXcrSBGfVZY+wnYELXNUfKxfZNQJkIz/CZCFlIs+b+iOCuVjwk +E6TOOcAXJHzQ9VdZLWxnukcQVK7iwX6Mv60YDqvLXL8OmH4ucvvHeWg5qWugEE8D +cIjq9WdowSamDsHje8nzv6gKVHym4uiDO9mYq85nTLtzcqdEPox0PLGRwUzYIT+8 +CDUwpw== +-----END CERTIFICATE----- Added: airavata/sandbox/grid-tools/gridftp-client/certificates/e5cc84c2.crl_url URL: http://svn.apache.org/viewvc/airavata/sandbox/grid-tools/gridftp-client/certificates/e5cc84c2.crl_url?rev=1491628&view=auto ============================================================================== --- airavata/sandbox/grid-tools/gridftp-client/certificates/e5cc84c2.crl_url (added) +++ airavata/sandbox/grid-tools/gridftp-client/certificates/e5cc84c2.crl_url Mon Jun 10 22:28:20 2013 @@ -0,0 +1 @@ +http://www.tacc.utexas.edu/CA/e5cc84c2.r0 Added: airavata/sandbox/grid-tools/gridftp-client/certificates/e5cc84c2.signing_policy URL: http://svn.apache.org/viewvc/airavata/sandbox/grid-tools/gridftp-client/certificates/e5cc84c2.signing_policy?rev=1491628&view=auto ============================================================================== --- airavata/sandbox/grid-tools/gridftp-client/certificates/e5cc84c2.signing_policy (added) +++ airavata/sandbox/grid-tools/gridftp-client/certificates/e5cc84c2.signing_policy Mon Jun 10 22:28:20 2013 @@ -0,0 +1,5 @@ +# TACC Classic CA Signing Policy +access_id_CA X509 '/DC=EDU/DC=UTEXAS/DC=TACC/O=UT-AUSTIN/CN=TACC Classic CA' +pos_rights globus CA:sign +cond_subjects globus '"/DC=EDU/DC=UTEXAS/DC=TACC/O=UT-AUSTIN/O=TACC Classic CA/*"' + Added: airavata/sandbox/grid-tools/gridftp-client/certificates/e5cc84c2.tacc.cadesc URL: http://svn.apache.org/viewvc/airavata/sandbox/grid-tools/gridftp-client/certificates/e5cc84c2.tacc.cadesc?rev=1491628&view=auto ============================================================================== --- airavata/sandbox/grid-tools/gridftp-client/certificates/e5cc84c2.tacc.cadesc (added) +++ airavata/sandbox/grid-tools/gridftp-client/certificates/e5cc84c2.tacc.cadesc Mon Jun 10 22:28:20 2013 @@ -0,0 +1,17 @@ +# $Id: e5cc84c2.tacc.cadesc,v 1.1 2008/10/23 02:20:34 marg Exp $ + +CA_NAME TACC Classic Certification Authority +HOMEPAGE http://www.tacc.utexas.edu/CA/ +CONTACT [email protected] +HASH e5cc84c2 +SIGNED_BY /DC=EDU/DC=UTEXAS/DC=TACC/O=UT-AUSTIN/CN=TACC Root CA +SUBJECT /DC=EDU/DC=UTEXAS/DC=TACC/O=UT-AUSTIN/CN=TACC Classic CA +MAY_SIGN /DC=EDU/DC=UTEXAS/DC=TACC/O=UT-AUSTIN/O=TACC Classic CA/* +CERTIFICATE_MD5 EA:31:04:07:7B:0A:04:EC:DD:B1:A2:75:29:39:83:98 +CERTIFICATE_SHA1 5B:AE:F7:20:B1:3A:91:4F:1C:FE:8F:AF:5E:ED:48:DB:62:0E:47:65 +CERTIFICATE_URL http://www.tacc.utexas.edu/CA/e5cc84c2.0 +SIGNING_POLICY_URL http://www.tacc.utexas.edu/CA/e5cc84c2.signing_policy +# CERT_BEGINS Thu 2008-10-02 04:02:04 UTC +CERT_EXPIRES Tue 2013-10-01 04:02:04 UTC +CRL_URL http://www.tacc.utexas.edu/CA/e5cc84c2.r0 + Added: airavata/sandbox/grid-tools/gridftp-client/certificates/e5cc84c2.tacc.cadesc.sig URL: http://svn.apache.org/viewvc/airavata/sandbox/grid-tools/gridftp-client/certificates/e5cc84c2.tacc.cadesc.sig?rev=1491628&view=auto ============================================================================== --- airavata/sandbox/grid-tools/gridftp-client/certificates/e5cc84c2.tacc.cadesc.sig (added) +++ airavata/sandbox/grid-tools/gridftp-client/certificates/e5cc84c2.tacc.cadesc.sig Mon Jun 10 22:28:20 2013 @@ -0,0 +1,11 @@ +-----BEGIN PGP SIGNATURE----- +Version: 9.10.0.500 + +iQEVAwUATCotnbY5Ggxzc9voAQgJSQf/YbjNFde83PJt1FebHFXjvgX4IY3GyqlL +FaXpIIftd1aHi1vSkdTXqptwSE8H9TjKiouyhsvghvvTAGFXRuYHqwKIjZOyZcyW +d2SGfjCgxRUkCLegfoPvAySPbzKKlJMs+q3yX6kbWStPv3nW42Z3GFuKq8C/qf5N +aIgoWKjbWlWnEzlKsW6FsG6kx65h5Ive5jsvxKOV0sSHhwFDKRUBAiFE7Gczn7Dz +5zr6m9rUl8Ll00rlpbaS6ghR1zjYBJRn7dR/eIqqiZzAtBj6f+VQz6Ehx+vAys5v +g13dRbz5wetaN7EFWOUjlzRz/lhHzCS55yIyt0X8LRemHKUe9pvqSw== +=a5yr +-----END PGP SIGNATURE----- Added: airavata/sandbox/grid-tools/gridftp-client/certificates/ef300431.0 URL: http://svn.apache.org/viewvc/airavata/sandbox/grid-tools/gridftp-client/certificates/ef300431.0?rev=1491628&view=auto ============================================================================== --- airavata/sandbox/grid-tools/gridftp-client/certificates/ef300431.0 (added) +++ airavata/sandbox/grid-tools/gridftp-client/certificates/ef300431.0 Mon Jun 10 22:28:20 2013 @@ -0,0 +1,25 @@ +-----BEGIN CERTIFICATE----- +MIIEHTCCAwWgAwIBAgIBATANBgkqhkiG9w0BAQUFADBuMRMwEQYKCZImiZPyLGQB +GRMDRURVMRYwFAYKCZImiZPyLGQBGRMGVVRFWEFTMRQwEgYKCZImiZPyLGQBGRME +VEFDQzESMBAGA1UEChMJVVQtQVVTVElOMRUwEwYDVQQDEwxUQUNDIFJvb3QgQ0Ew +HhcNMDgxMDAyMDM1NjAyWhcNMTgwOTMwMDM1NjAyWjBuMRMwEQYKCZImiZPyLGQB +GRMDRURVMRYwFAYKCZImiZPyLGQBGRMGVVRFWEFTMRQwEgYKCZImiZPyLGQBGRME +VEFDQzESMBAGA1UEChMJVVQtQVVTVElOMRUwEwYDVQQDEwxUQUNDIFJvb3QgQ0Ew +ggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQCwlD+7dc8Am/rnd1bvvyW+ +UGlkXb3KxlObgmlx0RdznJvWrxCPz4/nfvk87toUX2L4fxv3/mO3Q6n0UVFc83og +oJlNh8oqNJuVotH6jg+e65XD0z4QSNSgLVAWGV/9TU93PGUALgfXJFng3VbJ/Ljb +o01RbOQjOD7e5VJIx52wlOiyaMQlaV0yZ4C5OxgpKR/X2xMtqbuCGVIieeOBJtzg +cvatyuEIZBSHA/qhX51Rqrfc8MtKeZ/Zu7K4v0RC77bolptsAg36LCRR1T9BcyJx +Gv+yj52m5bPBuJj6ALEx/CkI6fAmkDGLvtIwZJRByrN8BdXYrBme6q0NChJg1pPR +AgMAyfujgcUwgcIwDwYDVR0TAQH/BAUwAwEB/zAdBgNVHQ4EFgQUjXUjaNFVmWzD +ph6G/N/EU+jlU8cwHwYDVR0jBBgwFoAUjXUjaNFVmWzDph6G/N/EU+jlU8cwDgYD +VR0PAQH/BAQDAgEGMB0GA1UdEQQWMBSBEmNhQHRhY2MudXRleGFzLmVkdTBABgNV +HR8EOTA3MDWgM6Axhi9odHRwOi8vd3d3LnRhY2MudXRleGFzLmVkdS9DQS9UQUND +X1Jvb3RfQ1JMLmRlcjANBgkqhkiG9w0BAQUFAAOCAQEAm7B3gK4RiE50ct2cAbhT +dD1BOHXVIIb312ZlqB6IqwM+EFfo4HW82/bDbfPfF8QZMvESuRkFl0mVK5hYPT12 +VWsQC5sX6wz1ps5dgoaJ+lLZbgb3pStnN0lZEAfufMog98GM+DW6YnJaWIYpv2Mv +QbRYInGZAYWHR2GJbUjyKh2u0sJZOHJjffDL4NCUsA2thaKDcE0CG8bjwikYEVHX +j6GTY5rLsKW2NfJ8VU40dPEGjtWMOsC0HFoy27Nj5Gi2j6WpRD49EKN7+pg6Dy2I +Em9R60Sl6WhKgo//3+mg8/mZqsqCQSq5BNa7M5ltyx1RgFPoRhKlTDXLDzxVEFNk +Cg== +-----END CERTIFICATE----- Added: airavata/sandbox/grid-tools/gridftp-client/certificates/ef300431.crl_url URL: http://svn.apache.org/viewvc/airavata/sandbox/grid-tools/gridftp-client/certificates/ef300431.crl_url?rev=1491628&view=auto ============================================================================== --- airavata/sandbox/grid-tools/gridftp-client/certificates/ef300431.crl_url (added) +++ airavata/sandbox/grid-tools/gridftp-client/certificates/ef300431.crl_url Mon Jun 10 22:28:20 2013 @@ -0,0 +1 @@ +http://www.tacc.utexas.edu/CA/684261aa.r0 Added: airavata/sandbox/grid-tools/gridftp-client/certificates/ef300431.signing_policy URL: http://svn.apache.org/viewvc/airavata/sandbox/grid-tools/gridftp-client/certificates/ef300431.signing_policy?rev=1491628&view=auto ============================================================================== --- airavata/sandbox/grid-tools/gridftp-client/certificates/ef300431.signing_policy (added) +++ airavata/sandbox/grid-tools/gridftp-client/certificates/ef300431.signing_policy Mon Jun 10 22:28:20 2013 @@ -0,0 +1,5 @@ +# TACC Root CA Signing Policy +access_id_CA X509 '/DC=EDU/DC=UTEXAS/DC=TACC/O=UT-AUSTIN/CN=TACC Root CA' +pos_rights globus CA:sign +cond_subjects globus '"/DC=EDU/DC=UTEXAS/DC=TACC/O=UT-AUSTIN/CN=TACC Classic CA" "/DC=EDU/DC=UTEXAS/DC=TACC/O=UT-AUSTIN/CN=TACC MICS CA"' + Added: airavata/sandbox/grid-tools/gridftp-client/certificates/ef300431.tacc.cadesc URL: http://svn.apache.org/viewvc/airavata/sandbox/grid-tools/gridftp-client/certificates/ef300431.tacc.cadesc?rev=1491628&view=auto ============================================================================== --- airavata/sandbox/grid-tools/gridftp-client/certificates/ef300431.tacc.cadesc (added) +++ airavata/sandbox/grid-tools/gridftp-client/certificates/ef300431.tacc.cadesc Mon Jun 10 22:28:20 2013 @@ -0,0 +1,18 @@ +# $Id: 684261aa.tacc.cadesc,v 1.1 2010/06/29 10:20:34 marg Exp $ + +CA_NAME TACC Root Certification Authority +HOMEPAGE http://www.tacc.utexas.edu/CA/ +CONTACT [email protected] +HASH 684261aa +# SIGNED_BY self +SUBJECT /DC=EDU/DC=UTEXAS/DC=TACC/O=UT-AUSTIN/CN=TACC Root CA +MAY_SIGN /DC=EDU/DC=UTEXAS/DC=TACC/O=UT-AUSTIN/CN=TACC Classic CA +MAY_SIGN /DC=EDU/DC=UTEXAS/DC=TACC/O=UT-AUSTIN/CN=TACC MICS CA +CERTIFICATE_MD5 01:46:1D:D5:80:60:5A:4B:CB:B3:61:AA:A1:3D:6C:42 +CERTIFICATE_SHA1 15:2D:FC:BA:13:11:2C:F5:65:53:AC:94:5F:89:2C:B0:E5:F6:BA:A8 +CERTIFICATE_URL http://www.tacc.utexas.edu/CA/684261aa.0 +SIGNING_POLICY_URL http://www.tacc.utexas.edu/CA/684261aa.signing_policy +# CERT_BEGINS Thu 2008-10-02 03:56:02 UTC +CERT_EXPIRES Mon 2018-09-30 03:56:02 UTC +CRL_URL http://www.tacc.utexas.edu/CA/684261aa.r0 + Added: airavata/sandbox/grid-tools/gridftp-client/certificates/ef300431.tacc.cadesc.sig URL: http://svn.apache.org/viewvc/airavata/sandbox/grid-tools/gridftp-client/certificates/ef300431.tacc.cadesc.sig?rev=1491628&view=auto ============================================================================== --- airavata/sandbox/grid-tools/gridftp-client/certificates/ef300431.tacc.cadesc.sig (added) +++ airavata/sandbox/grid-tools/gridftp-client/certificates/ef300431.tacc.cadesc.sig Mon Jun 10 22:28:20 2013 @@ -0,0 +1,11 @@ +-----BEGIN PGP SIGNATURE----- +Version: 9.10.0.500 + +iQEVAwUATCotdbY5Ggxzc9voAQgWnQf/TEBiJR8v+kpIcH2iAVuPRvrb/d//PBik +tI3bHzllrmuf5CsI0fGh9/4NPjmlNdV2BgcR1N80pHZqXP4kpnNIwF75IevTmvaz +mkWlumpuA/cs4nPmmMR3PkTFOHfYmYUXn56MivbxTtevYLeKF23sNGSszfzL3amq +0fCn5T9aoldF0Tw+so2t05r0MXN3jPiBlDn5u5oQBNXNXmEoXdO1OdB/Re3oDzwS +0W1fA7vObyzpiXZ1EOnMhfqt3MGJEQfUtDtqrLCJz2kPukn9JdsD9qWkKEYD8p4E +LYhXDRnamCEFhb+gZgrY9AzYzG+sVdseeB1GlsZNoq2j62yXeDVE6Q== +=hthG +-----END PGP SIGNATURE----- Added: airavata/sandbox/grid-tools/gridftp-client/certificates/f2e89fe3.0 URL: http://svn.apache.org/viewvc/airavata/sandbox/grid-tools/gridftp-client/certificates/f2e89fe3.0?rev=1491628&view=auto ============================================================================== --- airavata/sandbox/grid-tools/gridftp-client/certificates/f2e89fe3.0 (added) +++ airavata/sandbox/grid-tools/gridftp-client/certificates/f2e89fe3.0 Mon Jun 10 22:28:20 2013 @@ -0,0 +1,23 @@ +-----BEGIN CERTIFICATE----- +MIID1DCCArygAwIBAgIBADANBgkqhkiG9w0BAQUFADB7MQswCQYDVQQGEwJVUzE4 +MDYGA1UEChMvTmF0aW9uYWwgQ2VudGVyIGZvciBTdXBlcmNvbXB1dGluZyBBcHBs +aWNhdGlvbnMxIDAeBgNVBAsTF0NlcnRpZmljYXRlIEF1dGhvcml0aWVzMRAwDgYD +VQQDEwdNeVByb3h5MB4XDTA3MDQyNDE5MjUwM1oXDTI3MDQyNDE5MjUwM1owezEL +MAkGA1UEBhMCVVMxODA2BgNVBAoTL05hdGlvbmFsIENlbnRlciBmb3IgU3VwZXJj +b21wdXRpbmcgQXBwbGljYXRpb25zMSAwHgYDVQQLExdDZXJ0aWZpY2F0ZSBBdXRo +b3JpdGllczEQMA4GA1UEAxMHTXlQcm94eTCCASIwDQYJKoZIhvcNAQEBBQADggEP +ADCCAQoCggEBAM/KcRyXYRfFaUaveXlZb+tD9tev2UsHd1xxi0cJ2SDAUD/np3LQ +/r0zqnOl8ayy9vpf4rE4newiGZksS+KqzjLPQHG/GbiHWZB2nxByXStlAMMvStt9 +4wkuxBAkBadZ6FDb6o8COkOnFVw1zHQsrGFLdjQ2VzHRBEzevb+OZ+J6DmnSDv3n +jZR4hVqXPzHvYOA8sigm7byMN8klOyjkJ9vzSS7a+fmx1XOFfc6y3W8K1NigAPbZ +C+FGF1sQTqd8Vm39gvPkMb4Sq8MeC8JXw/St9fNooVapqWutOIo2XkN/dXELBlGp +Kl0u7b8CUQbvtX6PXv+YJ2VVbPuKb14VNNkCAwEAAaNjMGEwHQYDVR0OBBYEFNf8 +pQJ2OvYT+iuh4OZQNccjx3tRMB8GA1UdIwQYMBaAFNf8pQJ2OvYT+iuh4OZQNccj +x3tRMA8GA1UdEwEB/wQFMAMBAf8wDgYDVR0PAQH/BAQDAgEGMA0GCSqGSIb3DQEB +BQUAA4IBAQBi4TS62ryeY3qhQqO3vffFGt5EvU6C5YFO/6AoyXB9CYelxqIH11fI +K84iusoP8ygEBSzIHx+CeQqcoryOt3ZS7AFRpo4T1eAwdZXsyCYoAA8D8TZaektf +GNNEkXOR9+onj7CyI6soC28gE7MX9uy2Nmm8JbyPvHq+uOZoLhLT2mWLGUqcYjk9 +aiV+vgitUvAvGpWMttAqC2Q+QmqcdWqxHFPbJ90qz1vCf3igWZtYNS//qmVqEH4V +4sE/NAaFZXkpx6bcegRQNCLT5GCfvaTrtVSogQi2aXqhw+1y0ctr6X+iIHRcl5en +tiL8tePYe8HHGDH2aNVOBpJrUqpmSkMg +-----END CERTIFICATE----- Added: airavata/sandbox/grid-tools/gridftp-client/certificates/f2e89fe3.crl_url URL: http://svn.apache.org/viewvc/airavata/sandbox/grid-tools/gridftp-client/certificates/f2e89fe3.crl_url?rev=1491628&view=auto ============================================================================== --- airavata/sandbox/grid-tools/gridftp-client/certificates/f2e89fe3.crl_url (added) +++ airavata/sandbox/grid-tools/gridftp-client/certificates/f2e89fe3.crl_url Mon Jun 10 22:28:20 2013 @@ -0,0 +1 @@ +http://ca.ncsa.uiuc.edu/f2e89fe3.r0 Added: airavata/sandbox/grid-tools/gridftp-client/certificates/f2e89fe3.signing_policy URL: http://svn.apache.org/viewvc/airavata/sandbox/grid-tools/gridftp-client/certificates/f2e89fe3.signing_policy?rev=1491628&view=auto ============================================================================== --- airavata/sandbox/grid-tools/gridftp-client/certificates/f2e89fe3.signing_policy (added) +++ airavata/sandbox/grid-tools/gridftp-client/certificates/f2e89fe3.signing_policy Mon Jun 10 22:28:20 2013 @@ -0,0 +1,3 @@ +access_id_CA X509 '/C=US/O=National Center for Supercomputing Applications/OU=Certificate Authorities/CN=MyProxy' +pos_rights globus CA:sign +cond_subjects globus '/C=US/O=National Center for Supercomputing Applications/CN=*' Added: airavata/sandbox/grid-tools/gridftp-client/certificates/ffc3d59b.0 URL: http://svn.apache.org/viewvc/airavata/sandbox/grid-tools/gridftp-client/certificates/ffc3d59b.0?rev=1491628&view=auto ============================================================================== --- airavata/sandbox/grid-tools/gridftp-client/certificates/ffc3d59b.0 (added) +++ airavata/sandbox/grid-tools/gridftp-client/certificates/ffc3d59b.0 Mon Jun 10 22:28:20 2013 @@ -0,0 +1,23 @@ +-----BEGIN CERTIFICATE----- +MIIDwzCCAqugAwIBAgICAQAwDQYJKoZIhvcNAQEFBQAwVDELMAkGA1UEBhMCVUsx +FTATBgNVBAoTDGVTY2llbmNlUm9vdDESMBAGA1UECxMJQXV0aG9yaXR5MRowGAYD +VQQDExFVSyBlLVNjaWVuY2UgUm9vdDAeFw0xMTA2MTgxMzAwMDBaFw0yNzEwMzAw +OTAwMDBaMFMxCzAJBgNVBAYTAlVLMRMwEQYDVQQKEwplU2NpZW5jZUNBMRIwEAYD +VQQLEwlBdXRob3JpdHkxGzAZBgNVBAMTElVLIGUtU2NpZW5jZSBDQSAyQjCCASIw +DQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAKkLgb2eIcly4LZfj0Rf5F7s+HE/ +6Tvpf4jsKkm7qs33y3EEudCbcPwQKjS2MgytPv+8xpEPHqy/hqTseNlZ6oJgc+V8 +xlJ+0iws882Ca8a9ZJ/iGQH9UzXU4q35ArN3cbwoWAAvMvzZ6hUV86fAAQ1AueQN +6h7/tnfYfaUMiB4PNxucmouMHDJGmYzl47FtlLeHUr2c4m/oWSG5pADIvGFpWFHj +NIw8/x4n97w5/ks0tc/8/5Q6xzUfCX/VfqciQCvKcui2J5MBhUlBDLenzwqvUytB +4XAwX/pRcKmnFEYwoc9OKGExNx9tn9RjQYJAC/KLb44Jqno9l0eRxu3uw4sCAwEA +AaOBnzCBnDAPBgNVHRMBAf8EBTADAQH/MA4GA1UdDwEB/wQEAwIBBjA5BgNVHR8E +MjAwMC6gLKAqhihodHRwOi8vY3JsLmNhLm5ncy5hYy51ay9jcmwvcm9vdC1jcmwu +ZGVyMB0GA1UdDgQWBBQSpb+Rn3/ir2pcCfLi+lngNuHzVTAfBgNVHSMEGDAWgBRe ++BtIpndrKTwuAFMzK2Oie36TwDANBgkqhkiG9w0BAQUFAAOCAQEAFQlXpYR45+fy +uKIh/c+7nIxODO5iWmKskxDSQhqhMCU8/d5WVfXZ35XoTakhhsxu+Q3smIa6AhbA +meAhIWc2kDgDatEUlMA5G3TQgUoQgjw5RAWxX5/7biaj2nSU7B4Nn5llOp4g+p9P +5H+wGm2KFhvslaoKBKhSUkM/1teS+XsoDjqaPp/4RQ80ywUYhVWJz18vH1ltWLQW +93i3mnLDDb+aOyeoxqIPCQSy6Q8nIYoM8e3jYvdjjZNruT45g6IK6bx7eQmEMfO+ +u7qJiCKWGMxY+72ZeOw/0DMw4y8kU0wrl7gQ1o1Jk94hHNpBam+hX0Btc1K7YwXB +CemmHAuKQw== +-----END CERTIFICATE----- Added: airavata/sandbox/grid-tools/gridftp-client/certificates/ffc3d59b.crl_url URL: http://svn.apache.org/viewvc/airavata/sandbox/grid-tools/gridftp-client/certificates/ffc3d59b.crl_url?rev=1491628&view=auto ============================================================================== --- airavata/sandbox/grid-tools/gridftp-client/certificates/ffc3d59b.crl_url (added) +++ airavata/sandbox/grid-tools/gridftp-client/certificates/ffc3d59b.crl_url Mon Jun 10 22:28:20 2013 @@ -0,0 +1 @@ +http://crl.ca.ngs.ac.uk/crl/escience2b.crl Added: airavata/sandbox/grid-tools/gridftp-client/certificates/ffc3d59b.signing_policy URL: http://svn.apache.org/viewvc/airavata/sandbox/grid-tools/gridftp-client/certificates/ffc3d59b.signing_policy?rev=1491628&view=auto ============================================================================== --- airavata/sandbox/grid-tools/gridftp-client/certificates/ffc3d59b.signing_policy (added) +++ airavata/sandbox/grid-tools/gridftp-client/certificates/ffc3d59b.signing_policy Mon Jun 10 22:28:20 2013 @@ -0,0 +1,5 @@ +# @(#)$Id: ffc3d59b.signing_policy,v 1.3 2011/09/30 06:19:28 pmacvsdg Exp $ +# + access_id_CA X509 '/C=UK/O=eScienceCA/OU=Authority/CN=UK e-Science CA 2B' + pos_rights globus CA:sign + cond_subjects globus '"/C=UK/O=eScience/*"' Modified: airavata/sandbox/grid-tools/gridftp-client/pom.xml URL: http://svn.apache.org/viewvc/airavata/sandbox/grid-tools/gridftp-client/pom.xml?rev=1491628&r1=1491627&r2=1491628&view=diff ============================================================================== --- airavata/sandbox/grid-tools/gridftp-client/pom.xml (original) +++ airavata/sandbox/grid-tools/gridftp-client/pom.xml Mon Jun 10 22:28:20 2013 @@ -23,56 +23,26 @@ <version>0.1-SNAPSHOT</version> <packaging>jar</packaging> - <repositories> - <repository> - <name>ogce.m2.all</name> - <id>ogce.m2.all</id> - <url>http://community.ucs.indiana.edu:9090/archiva/repository/ogce.m2.all</url> - </repository> - </repositories> - <dependencies> - <dependency> - <groupId>cog-jglobus</groupId> - <artifactId>cog-jglobus</artifactId> - <version>1.8.0_1</version> - </dependency> - - <dependency> - <groupId>cog-4_1_6_rc2</groupId> - <artifactId>puretls</artifactId> - <type>jar</type> - <version>cog-4_1_6</version> - </dependency> - - <dependency> - <groupId>cog-4_1_6_rc2</groupId> - <artifactId>cryptix32</artifactId> - <type>jar</type> - <version>cog-4_1_6</version> - </dependency> - - <dependency> - <groupId>cog-4_1_6_rc2</groupId> - <artifactId>jce-jdk13</artifactId> - <version>131</version> - <type>jar</type> - </dependency> - - <dependency> - <groupId>cog-4_1_6_rc2</groupId> - <artifactId>cryptix-asn1</artifactId> - <type>jar</type> - <version>cog-4_1_6</version> - </dependency> - <dependency> - <groupId>cog-4_1_6_rc2</groupId> - <artifactId>commons-digester</artifactId> - <type>jar</type> - <version>cog-4_1_6</version> - </dependency> + <dependency> + <groupId>org.jglobus</groupId> + <artifactId>gss</artifactId> + <version>2.0.6-rc2</version> + </dependency> + + <dependency> + <groupId>org.apache.airavata</groupId> + <artifactId>airavata-myproxy-client</artifactId> + <version>0.1-SNAPSHOT</version> + </dependency> + + <dependency> + <groupId>org.jglobus</groupId> + <artifactId>gridftp</artifactId> + <version>2.0.6-rc2</version> + </dependency> <dependency> <groupId>commons-logging</groupId> @@ -97,6 +67,20 @@ <target>1.5</target> </configuration> </plugin> + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-surefire-plugin</artifactId> + <version>${surefire.version}</version> + <configuration> + <failIfNoTests>false</failIfNoTests> + <skipTests>${skipTests}</skipTests> + <workingDirectory>${project.build.testOutputDirectory}</workingDirectory> + <systemPropertyVariables> + <projectDirectory>${basedir}</projectDirectory> + </systemPropertyVariables> + + </configuration> + </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-dependency-plugin</artifactId> @@ -118,5 +102,11 @@ </plugins> </build> + <properties> + <surefire.version>2.12</surefire.version> + <junit.version>4.7</junit.version> + <skipTests>false</skipTests> + </properties> + </project> Modified: airavata/sandbox/grid-tools/gridftp-client/src/main/java/org/apache/airavata/filetransfer/ExectionContext.java URL: http://svn.apache.org/viewvc/airavata/sandbox/grid-tools/gridftp-client/src/main/java/org/apache/airavata/filetransfer/ExectionContext.java?rev=1491628&r1=1491627&r2=1491628&view=diff ============================================================================== --- airavata/sandbox/grid-tools/gridftp-client/src/main/java/org/apache/airavata/filetransfer/ExectionContext.java (original) +++ airavata/sandbox/grid-tools/gridftp-client/src/main/java/org/apache/airavata/filetransfer/ExectionContext.java Mon Jun 10 22:28:20 2013 @@ -23,6 +23,8 @@ package org.apache.airavata.filetransfer import java.io.IOException; import java.io.InputStream; +import java.net.URI; +import java.net.URISyntaxException; import java.util.ArrayList; import java.util.Properties; @@ -40,6 +42,7 @@ public class ExectionContext { private String sourcedataLocation; private String gridFTPServerDest; private String destdataLocation; + private String uploadingFilePath; public static final String PROPERTY_FILE = "airavata-gridftp-client.properties"; @@ -65,6 +68,7 @@ public class ExectionContext { String gridFTPSourcePath = properties.getProperty(ServiceConstants.GRIDFTPSOURCEPATH); String gridFTPServerDest = properties.getProperty(ServiceConstants.GRIDFTPSERVERDEST); String gridFTPDestPath = properties.getProperty(ServiceConstants.GRIDFTPDESTPATH); + String gridFTPUploadingPath = properties.getProperty(ServiceConstants.UPLOADING_FILE_PATH); if (testinghost != null) { this.testingHost = testinghost; @@ -92,6 +96,9 @@ public class ExectionContext { if (gridFTPDestPath != null && !gridFTPDestPath.isEmpty()) { this.destdataLocation = gridFTPDestPath; } + if (gridFTPUploadingPath != null && !gridFTPUploadingPath.isEmpty()) { + this.uploadingFilePath = gridFTPUploadingPath; + } } } @@ -136,6 +143,24 @@ public class ExectionContext { this.gridFTPServerSource = gridFTPServerSource; } + public URI getSourceDataFileUri() throws URISyntaxException { + String file = gridFTPServerSource + getSourcedataLocation(); + return new URI(file); + } + + public URI getUploadingFilePathUri() throws URISyntaxException { + String file = gridFTPServerSource + getUploadingFilePath(); + return new URI(file); + } + + public String getUploadingFilePath() { + return uploadingFilePath; + } + + public void setUploadingFilePath(String uploadingFilePath) { + this.uploadingFilePath = uploadingFilePath; + } + public String getSourcedataLocation() { return sourcedataLocation; } Modified: airavata/sandbox/grid-tools/gridftp-client/src/main/java/org/apache/airavata/filetransfer/FileTransfer.java URL: http://svn.apache.org/viewvc/airavata/sandbox/grid-tools/gridftp-client/src/main/java/org/apache/airavata/filetransfer/FileTransfer.java?rev=1491628&r1=1491627&r2=1491628&view=diff ============================================================================== --- airavata/sandbox/grid-tools/gridftp-client/src/main/java/org/apache/airavata/filetransfer/FileTransfer.java (original) +++ airavata/sandbox/grid-tools/gridftp-client/src/main/java/org/apache/airavata/filetransfer/FileTransfer.java Mon Jun 10 22:28:20 2013 @@ -23,7 +23,7 @@ package org.apache.airavata.filetransfer import java.net.URI; -import org.apache.airavata.filetransfer.security.SecurityContext; +import org.apache.airavata.security.myproxy.SecurityContext; import org.apache.airavata.filetransfer.utils.GridFtp; import org.apache.log4j.BasicConfigurator; import org.apache.log4j.Level; Modified: airavata/sandbox/grid-tools/gridftp-client/src/main/java/org/apache/airavata/filetransfer/utils/GridFtp.java URL: http://svn.apache.org/viewvc/airavata/sandbox/grid-tools/gridftp-client/src/main/java/org/apache/airavata/filetransfer/utils/GridFtp.java?rev=1491628&r1=1491627&r2=1491628&view=diff ============================================================================== --- airavata/sandbox/grid-tools/gridftp-client/src/main/java/org/apache/airavata/filetransfer/utils/GridFtp.java (original) +++ airavata/sandbox/grid-tools/gridftp-client/src/main/java/org/apache/airavata/filetransfer/utils/GridFtp.java Mon Jun 10 22:28:20 2013 @@ -54,10 +54,10 @@ public class GridFtp { /** * Make directory at remote location * - * @param destURI - * @param gssCred - * @throws ServerException - * @throws IOException + * @param destURI Directory name and server location to create the directory. + * @param gssCred Credentials to authenticate with remote server. + * @throws ServerException If an error occurred while authenticating. + * @throws IOException If an error occurred while creating the directory. */ public void makeDir(URI destURI, GSSCredential gssCred) throws Exception { GridFTPClient destClient = null; @@ -114,10 +114,8 @@ public class GridFtp { /** * Upload file from stream * - * @param destURI - * @param gsCredential - * @param localFile - * @throws GfacException + * @param destURI Name of the file to be uploaded. + * @param gsCredential Credentials to authenticate. */ public void updateFile(URI destURI, GSSCredential gsCredential, InputStream io) throws Exception { GridFTPClient ftpClient = null; @@ -164,10 +162,9 @@ public class GridFtp { /** * Upload file to remote location * - * @param destURI - * @param gsCredential - * @param localFile - * @throws GfacException + * @param destURI Name of the file to be uploaded. + * @param gsCredential Credentials used to upload the file. + * @param localFile Local file to be uploaded. */ public void updateFile(URI destURI, GSSCredential gsCredential, File localFile) throws Exception { GridFTPClient ftpClient = null; @@ -190,6 +187,7 @@ public class GridFtp { ftpClient.put(localFile, remoteFile, false); + log.info("Upload file to:" + remoteFile + " is done"); } catch (ServerException e) { @@ -212,10 +210,9 @@ public class GridFtp { /** * Download File from remote location * - * @param destURI - * @param gsCredential - * @param localFile - * @throws GfacException + * @param destURI File to be downloaded. + * @param gsCredential To authenticate user to remote machine. + * @param localFile The downloaded file name. */ public void downloadFile(URI destURI, GSSCredential gsCredential, File localFile) throws Exception { GridFTPClient ftpClient = null; @@ -257,13 +254,52 @@ public class GridFtp { } /** + * Checks whether files exists. + * + * @param destURI Name of the file to check existence. + * @param gsCredential Credentials to authenticate user. + */ + public boolean exists(URI destURI, GSSCredential gsCredential) throws Exception { + GridFTPClient ftpClient = null; + GridFTPContactInfo contactInfo = new GridFTPContactInfo(destURI.getHost(), destURI.getPort()); + try { + String remoteFile = destURI.getPath(); + + log.info("the remote file is " + remoteFile); + + log.info("Setup GridFTP Client"); + + ftpClient = new GridFTPClient(contactInfo.hostName, contactInfo.port); + ftpClient.setAuthorization(new HostAuthorization("host")); + ftpClient.authenticate(gsCredential); + ftpClient.setDataChannelAuthentication(DataChannelAuthentication.SELF); + + log.info("Checking whether file exists"); + + return ftpClient.exists(destURI.getPath()); + + } catch (ServerException e) { + throw new Exception("Cannot download file from GridFTP:" + contactInfo.toString(), e); + } catch (IOException e) { + throw new Exception("Cannot download file from GridFTP:" + contactInfo.toString(), e); + } finally { + if (ftpClient != null) { + try { + ftpClient.close(); + } catch (Exception e) { + log.info("Cannot close GridFTP client connection"); + } + } + } + } + + /** * Stream remote file * - * @param destURI - * @param gsCredential - * @param localFile - * @return - * @throws GfacException + * @param destURI Remote file to be read. + * @param gsCredential Credentials to authenticate user. + * @param localFile Downloaded local file name. + * @return The content of the downloaded file. */ public String readRemoteFile(URI destURI, GSSCredential gsCredential, File localFile) throws Exception { BufferedReader instream = null; @@ -309,9 +345,9 @@ public class GridFtp { /** * Transfer data from one GridFTp Endpoint to another GridFTP Endpoint * - * @param srchost - * @param desthost - * @param gssCred + * @param srchost Source file and host. + * @param desthost Destination file and host. + * @param gssCred Credentials to be authenticate user. * @param srcActive * @throws ServerException * @throws ClientException Modified: airavata/sandbox/grid-tools/gridftp-client/src/main/java/org/apache/airavata/filetransfer/utils/ServiceConstants.java URL: http://svn.apache.org/viewvc/airavata/sandbox/grid-tools/gridftp-client/src/main/java/org/apache/airavata/filetransfer/utils/ServiceConstants.java?rev=1491628&r1=1491627&r2=1491628&view=diff ============================================================================== --- airavata/sandbox/grid-tools/gridftp-client/src/main/java/org/apache/airavata/filetransfer/utils/ServiceConstants.java (original) +++ airavata/sandbox/grid-tools/gridftp-client/src/main/java/org/apache/airavata/filetransfer/utils/ServiceConstants.java Mon Jun 10 22:28:20 2013 @@ -41,5 +41,6 @@ public class ServiceConstants { public static final String GRIDFTPSOURCEPATH = "gridftpSourcePath"; public static final String GRIDFTPSERVERDEST = "gridftpserverDest"; public static final String GRIDFTPDESTPATH = "gridftpDestPath"; + public static final String UPLOADING_FILE_PATH = "gridftpUploadingFilePath"; } Modified: airavata/sandbox/grid-tools/gridftp-client/src/main/resources/airavata-gridftp-client.properties URL: http://svn.apache.org/viewvc/airavata/sandbox/grid-tools/gridftp-client/src/main/resources/airavata-gridftp-client.properties?rev=1491628&r1=1491627&r2=1491628&view=diff ============================================================================== --- airavata/sandbox/grid-tools/gridftp-client/src/main/resources/airavata-gridftp-client.properties (original) +++ airavata/sandbox/grid-tools/gridftp-client/src/main/resources/airavata-gridftp-client.properties Mon Jun 10 22:28:20 2013 @@ -17,13 +17,15 @@ lonestar.gridftp.endpoint=gsiftp://gridf stampede.gridftp.endpoint=gsiftp://gridftp.stampede.tacc.utexas.edu:2811/ ## SDSC Trestles -trestles.gridftp.endpoint=gsiftp://trestles.sdsc.edu:2811/ - -gridftpserverSource=gsiftp://trestles-dm.sdsc.xsede.org:2811/ -gridftpSourcePath=/oasis/projects/nsf/sds128/ogce/file-transfer-tests/source/sample_wrfout.netcdf +trestles.gridftp.endpoint=gsiftp://trestles.sdsc.edu:2811/ + +gridftpserverSource=gsiftp://trestles-dm.sdsc.xsede.org:2811/ +gridftpSourcePath=/oasis/projects/nsf/sds128/ogce/file-transfer-tests/source/sample_wrfout.netcdf +gridftpUploadingFilePath = /oasis/projects/nsf/sds128/ogce/file-transfer-tests/source/dummy1 + +#gridftpserverDest=gsiftp://trestles-dm.sdsc.xsede.org:2811/ +#gridftpDestPath=/oasis/projects/nsf/sds128/ogce/file-transfer-tests/gf -#gridftpserverDest=gsiftp://trestles.sdsc.edu:2811/ -#gridftpDestPath=/oasis/projects/nsf/sds128/ogce/file-transfer-tests/dest/ - gridftpserverDest=gsiftp://gridftp.stampede.tacc.utexas.edu:2811/ -gridftpDestPath=/scratch/01437/ogce/file-transfer-tests/dest \ No newline at end of file +gridftpDestPath=/scratch/01437/ogce/file-transfer-tests/dest/xx + Added: airavata/sandbox/grid-tools/gridftp-client/src/test/java/org/apache/airavata/filetransfer/CertFileReadTest.java URL: http://svn.apache.org/viewvc/airavata/sandbox/grid-tools/gridftp-client/src/test/java/org/apache/airavata/filetransfer/CertFileReadTest.java?rev=1491628&view=auto ============================================================================== --- airavata/sandbox/grid-tools/gridftp-client/src/test/java/org/apache/airavata/filetransfer/CertFileReadTest.java (added) +++ airavata/sandbox/grid-tools/gridftp-client/src/test/java/org/apache/airavata/filetransfer/CertFileReadTest.java Mon Jun 10 22:28:20 2013 @@ -0,0 +1,201 @@ +/* + * + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + * + */ + +package org.apache.airavata.filetransfer; + +import junit.framework.Assert; +import org.bouncycastle.asn1.DEROutputStream; +import org.bouncycastle.asn1.x500.*; +import junit.framework.TestCase; +import org.bouncycastle.asn1.ASN1Encodable; +import org.bouncycastle.asn1.DEREncodable; +import org.bouncycastle.asn1.DERObject; +import org.bouncycastle.asn1.x509.X509Name; +import org.bouncycastle.jce.X509Principal; +import org.globus.gsi.SigningPolicy; +import org.globus.gsi.SigningPolicyParser; +import org.globus.gsi.util.CertificateIOUtil; +import org.globus.util.GlobusResource; + +import javax.security.auth.x500.X500Principal; +import java.io.ByteArrayOutputStream; +import java.io.FileInputStream; +import java.io.InputStreamReader; +import java.io.Reader; +import java.security.MessageDigest; +import java.security.NoSuchAlgorithmException; +import java.security.cert.CertificateFactory; +import java.security.cert.X509Certificate; +import java.util.Map; + +/** + * User: AmilaJ ([email protected]) + * Date: 6/7/13 + * Time: 9:57 AM + */ + +public class CertFileReadTest extends TestCase { + + private static MessageDigest md5; + + public void testCertFileRead() throws Exception { + + String path1 = "/Users/thejaka/development/apache/airavata/sandbox/grid-tools/gridftp-client/certificates/e5cc84c2"; + String path2 = "/Users/thejaka/development/apache/airavata/sandbox/grid-tools/gridftp-client/certificates/ffc3d59b"; + + GlobusResource globusResource1 = new GlobusResource(path1 + ".signing_policy"); + GlobusResource globusResource2 = new GlobusResource(path2 + ".signing_policy"); + GlobusResource globusResource3 = new GlobusResource("/Users/thejaka/development/apache/airavata/sandbox/grid-tools/gridftp-client/certificates/ef300431.signing_policy"); + GlobusResource globusResource4 = new GlobusResource("/Users/thejaka/development/apache/airavata/sandbox/grid-tools/gridftp-client/certificates/01b5d333.signing_policy"); + GlobusResource globusResource5 = new GlobusResource("/Users/thejaka/development/apache/airavata/sandbox/grid-tools/gridftp-client/certificates/081fefd0.signing_policy"); + //ResourceSigningPolicy resourceSigningPolicy = new ResourceSigningPolicy(globusResource); + + X509Certificate crt = readCertificate(path1 + ".0"); + X509Certificate crt2 = readCertificate(path2 + ".0"); + + System.out.println("======================================="); + System.out.println(crt.getIssuerX500Principal().getName()); + + + + + X500Principal certPrincipal = crt.getSubjectX500Principal(); + + X500Principal policySubjectCert = getPrincipal(globusResource1); + //"CN=TACC Classic CA,O=UT-AUSTIN,DC=TACC,DC=UTEXAS,DC=EDU" + //X500Principal policySubjectCert = new X500Principal(certPrincipal.getName()); + + System.out.println(CertificateIOUtil.nameHash(certPrincipal)); + System.out.println(CertificateIOUtil.nameHash((policySubjectCert))); + + + + + //ByteArrayOutputStream bout = new ByteArrayOutputStream(); + //DEROutputStream der = new DEROutputStream(bout); + //der.writeObject(name.getDERObject()); + + + + + + + + //==================== + //X500Principal certPrincipal2 = crt2.getSubjectX500Principal(); + // X500Principal policySubjectCert = getPrincipal(globusResource1); + //"CN=TACC Classic CA,O=UT-AUSTIN,DC=TACC,DC=UTEXAS,DC=EDU" + //X500Principal policySubjectCert2 = new X500Principal(certPrincipal2.getName()); + + //System.out.println(CertificateIOUtil.nameHash(certPrincipal2)); + //System.out.println(CertificateIOUtil.nameHash((policySubjectCert2))); + + //Assert.assertEquals(getHash(globusResource1), "e5cc84c2"); + //Assert.assertEquals(getHash(globusResource2), "ffc3d59b"); + //Assert.assertEquals(getHash(globusResource3), "ef300431"); + //Assert.assertEquals(getHash(globusResource4), "01b5d333"); + //Assert.assertEquals(getHash(globusResource5), "081fefd0"); + + } + + private String getHash(GlobusResource globusResource) throws Exception { + + X500Principal principal = getPrincipal(globusResource); + + System.out.println(principal.getName()); + + return CertificateIOUtil.nameHash(principal); + + } + + private X500Principal getPrincipal(GlobusResource globusResource) throws Exception{ + + SigningPolicyParser parser = new SigningPolicyParser(); + + Reader reader = new InputStreamReader(globusResource.getInputStream()); + + Map<X500Principal, SigningPolicy> policies = parser.parse(reader); + + return policies.keySet().iterator().next(); + + } + + private X509Certificate readCertificate(String certPath) { + try { + FileInputStream fr = new FileInputStream(certPath); + CertificateFactory cf = + CertificateFactory.getInstance("X509"); + X509Certificate crt = (X509Certificate) + cf.generateCertificate(fr); + System.out.println("Read certificate:"); + System.out.println("\tCertificate for: " + + crt.getSubjectDN()); + System.out.println("\tCertificate issued by: " + + crt.getIssuerDN()); + System.out.println("\tCertificate is valid from " + + crt.getNotBefore() + " to " + crt.getNotAfter()); + System.out.println("\tCertificate SN# " + + crt.getSerialNumber()); + System.out.println("\tGenerated with " + + crt.getSigAlgName()); + + return crt; + } catch (Exception e) { + e.printStackTrace(); + } + + return null; + } + + private static synchronized String hash(byte[] data) { + init(); + if (md5 == null) { + return null; + } + + md5.reset(); + md5.update(data); + + byte[] md = md5.digest(); + + long ret = (fixByte(md[0]) | (fixByte(md[1]) << 8L)); + ret = ret | fixByte(md[2]) << 16L; + ret = ret | fixByte(md[3]) << 24L; + ret = ret & 0xffffffffL; + + return Long.toHexString(ret); + } + + private static long fixByte(byte b) { + return (b < 0) ? (long) (b + 256) : (long) b; + } + + private static void init() { + if (md5 == null) { + try { + md5 = MessageDigest.getInstance("MD5"); + } catch (NoSuchAlgorithmException e) { + e.printStackTrace(); + } + } + } + +} Added: airavata/sandbox/grid-tools/gridftp-client/src/test/java/org/apache/airavata/filetransfer/FileTransferTest.java URL: http://svn.apache.org/viewvc/airavata/sandbox/grid-tools/gridftp-client/src/test/java/org/apache/airavata/filetransfer/FileTransferTest.java?rev=1491628&view=auto ============================================================================== --- airavata/sandbox/grid-tools/gridftp-client/src/test/java/org/apache/airavata/filetransfer/FileTransferTest.java (added) +++ airavata/sandbox/grid-tools/gridftp-client/src/test/java/org/apache/airavata/filetransfer/FileTransferTest.java Mon Jun 10 22:28:20 2013 @@ -0,0 +1,152 @@ +/* + * + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + * + */ + +package org.apache.airavata.filetransfer; + +import junit.framework.Assert; +import junit.framework.TestCase; +import org.apache.airavata.filetransfer.utils.GridFtp; +import org.apache.airavata.security.myproxy.SecurityContext; +import org.apache.log4j.BasicConfigurator; +import org.apache.log4j.Level; +import org.apache.log4j.Logger; +import org.ietf.jgss.GSSCredential; + +import java.io.*; +import java.net.URI; + +/** + * User: AmilaJ ([email protected]) + * Date: 5/31/13 + * Time: 12:39 PM + */ + +public class FileTransferTest extends TestCase { + + private GSSCredential gssCredential; + + private ExectionContext contextExectionContext; + + + public void setUp() throws Exception { + super.setUp(); + + BasicConfigurator.configure(); + Logger logger = Logger.getLogger("GridFTPClient"); + Level lev = Level.toLevel("DEBUG"); + logger.setLevel(lev); + SecurityContext context = new SecurityContext(); + context.login(); + contextExectionContext = new ExectionContext(); + + + String targeterp = contextExectionContext.getGridFTPServerDest(); + String remoteDestFile = contextExectionContext.getDestdataLocation(); + + URI dirLocation = GridFtp.createGsiftpURI(targeterp, + remoteDestFile.substring(0, remoteDestFile.lastIndexOf("/"))); + gssCredential = context.getGssCredential(); + System.out.println(dirLocation); + + } + + public void testMakeDir() throws Exception { + + String targetErp = contextExectionContext.getGridFTPServerDest(); + String remoteDestinationFile = contextExectionContext.getDestdataLocation(); + + URI dirLocation = GridFtp.createGsiftpURI(targetErp, + remoteDestinationFile.substring(0, remoteDestinationFile.lastIndexOf("/"))); + + GridFtp ftp = new GridFtp(); + ftp.makeDir(dirLocation, gssCredential); + } + + public void testTransferData() throws Exception { + + String sourceERP = contextExectionContext.getGridFTPServerSource(); + String remoteSrcFile = contextExectionContext.getSourcedataLocation(); + + String targetErp = contextExectionContext.getGridFTPServerDest(); + String remoteDestinationFile = contextExectionContext.getDestdataLocation(); + + URI srcURI = GridFtp.createGsiftpURI(sourceERP, remoteSrcFile); + URI destURI = GridFtp.createGsiftpURI(targetErp, remoteDestinationFile); + + GridFtp ftp = new GridFtp(); + ftp.transfer(srcURI, destURI, gssCredential, true); + + } + + public void testDownloadFile() throws Exception { + + String fileName = "./downloaded"; + + File deleteFile = new File(fileName); + + if (deleteFile.exists()) { + if (!deleteFile.delete()) + throw new RuntimeException("Unable to delete file " + fileName); + } + + File f = new File(fileName); + + GridFtp ftp = new GridFtp(); + ftp.downloadFile(contextExectionContext.getSourceDataFileUri(), + gssCredential, f); + + Assert.assertTrue(f.exists()); + + } + + public void testFileExists() throws Exception { + + GridFtp ftp = new GridFtp(); + Assert.assertTrue(ftp.exists(contextExectionContext.getSourceDataFileUri(), gssCredential)); + } + + public void testUpdateFile() throws Exception { + + String currentDir = System.getProperty("projectDirectory"); + + if (currentDir == null) + currentDir = "src/test/resources"; + else + currentDir = currentDir + "/src/test/resources"; + + String file = currentDir + "/dummy"; + + System.out.println("File to upload is " + file); + + File fileToUpload = new File(file); + + Assert.assertTrue(fileToUpload.canRead()); + + GridFtp ftp = new GridFtp(); + ftp.updateFile(contextExectionContext.getUploadingFilePathUri(), gssCredential, fileToUpload); + + Assert.assertTrue(ftp.exists(contextExectionContext.getUploadingFilePathUri(), gssCredential)); + + } + + + +} Added: airavata/sandbox/grid-tools/gridftp-client/src/test/resources/airavata-myproxy-client.properties URL: http://svn.apache.org/viewvc/airavata/sandbox/grid-tools/gridftp-client/src/test/resources/airavata-myproxy-client.properties?rev=1491628&view=auto ============================================================================== --- airavata/sandbox/grid-tools/gridftp-client/src/test/resources/airavata-myproxy-client.properties (added) +++ airavata/sandbox/grid-tools/gridftp-client/src/test/resources/airavata-myproxy-client.properties Mon Jun 10 22:28:20 2013 @@ -0,0 +1,7 @@ +#Download trusted certificates from - https://software.xsede.org/security/xsede-certs.tar.gz +trustedCertsFile=/Users/thejaka/development/apache/airavata/sandbox/grid-tools/gridftp-client/certificates +myproxyServer=myproxy.teragrid.org +myproxy_lifetime=17280000 +myproxyUserName= +myproxyPasswd= +myproxyPort=7512 \ No newline at end of file Added: airavata/sandbox/grid-tools/gridftp-client/src/test/resources/dummy URL: http://svn.apache.org/viewvc/airavata/sandbox/grid-tools/gridftp-client/src/test/resources/dummy?rev=1491628&view=auto ============================================================================== Binary file - no diff available. Propchange: airavata/sandbox/grid-tools/gridftp-client/src/test/resources/dummy ------------------------------------------------------------------------------ svn:mime-type = application/octet-stream
