jglobus / JGlobus

jGlobus is a collection of Java client libraries for Globus® Toolkit security, GRAM, and GridFTP.
http://www.globus.org/toolkit/jglobus/
Apache License 2.0
24 stars 44 forks source link

[JGLOBUS-12] No private key loaded #170

Closed bingzhang closed 5 years ago

bingzhang commented 5 years ago

Hello:

I setup simpleCA from GT 6.0 toolkit. After I get x509 proxy certificate, I try to generate GSSCredential cred using jglobus.

Unfortunately, the code throws Exception:

Exception in thread "main" Defective credential detected. Caused by org.globus.gsi.GlobusCredentialException: [JGLOBUS-12] No private key loaded
    at org.globus.gsi.GlobusCredential.load(GlobusCredential.java:245)
    at org.globus.gsi.GlobusCredential.<init>(GlobusCredential.java:180)
    at org.globus.gsi.gssapi.GlobusGSSManagerImpl.createCredential(GlobusGSSManagerImpl.java:243)

It seems jgloubs failed to get key at: https://github.com/dCache/jglobus-1.8/blob/master/src/org/globus/gsi/GlobusCredential.java#L210

bingzhang commented 5 years ago

never mind. I use different jglobus libs. I am going to close this one.