Bug 1446 - MyProxy.put() sometimes delegates a proxy of the wrong type
: MyProxy.put() sometimes delegates a proxy of the wrong type
: CoG jglobus
: 1.1
: PC All
: P2 normal
: ---
Assigned To:
  Show dependency treegraph
Reported: 2003-12-05 16:28 by
Modified: 2005-12-05 17:46 (History)



You need to log in before you can comment on or make changes to this bug.

Description From 2003-12-05 16:28:41
MyProxy.put() calls BouncyCastleCertProcessingFactory.createCertificate(in, 
cert, key, -1, GSIConstants.DELEGATION_FULL) which creates an old-style proxy 
certificate unless CertUtil.isGsi3Enabled() returns true, i.e., if the 
org.globus.gsi.version system property is set to 3.

I think either MyProxy.put() needs to be changed to tell 
BouncyCastleCertProcessingFactory.createCertificate() exactly what type of 
proxy to create (i.e., GSIConstants.GSI_3_IMPERSONATION_PROXY or 
GSIConstants.GSI_2_PROXY instead of GSIConstants.DELEGATION_FULL) depending on 
the type of the issuing proxy or 
BouncyCastleCertProcessingFactory.createCertificate() should look at the 
issuerCert type to find what type of proxy to create.  In my opinion, the 
change should be to BouncyCastleCertProcessingFactory.createCertificate().  
Should I develop and submit a patch?
------- Comment #1 From 2003-12-18 02:00:39 -------
BouncyCastleCertProcessingFactory.createCertificate() was updated to check for 
the issuerCert type. Please test it out if you can and let me know. Thanks.