On Fri, Mar 27, 2009 at 1:23 PM, Davide Guidotti <[email protected]> wrote:
>
> "new GlobusCredential(mykey, new X509Certificate[] {mycert});"
>
> The problem concerns the expiration date. Now the proxy has the same
> expiration date of the certificate, but I want to specify a different
> date. How can I specify the expiration date? I have tried using the
> BouncyCastleCertProcessingFactory.createCredential function, but I
> didn't succeed.

Here is an example how to create a GlobusCredential using
BouncyCastleCertProcessingFactory:

http://viewcvs.globus.org/viewcvs.cgi/gridshib/saml/common/java/src/org/globus/gridshib/security/util/GSIUtil.java?view=log

See one of the createCredential methods for details.

Hope this helps,
Tom

Reply via email to