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

org.bouncycastle.jce.X509Principal cannot be cast to org.bouncycastle.asn1.x509.X509Name #37

Closed lukaszlacinski closed 11 years ago

lukaszlacinski commented 11 years ago

This is an old bug discussed here http://bugzilla.mcs.anl.gov/globus/show_bug.cgi?id=6029#c8.

X509Name issuerDN = (X509Name) issuerCert.getSubjectDN();

in ssl-proxies/src/main/java/org/globus/gsi/bc/BouncyCastleCertProcessingFactory.java should be changed to

X509Name issuerDN; if (issuerCert.getSubjectDN() instanceof X509Name) { issuerDN = (X509Name)issuerCert.getSubjectDN(); } else { issuerDN = new X509Name(true,issuerCert.getSubjectX500Principal().getName()); }

bbockelm commented 11 years ago

Hi Lukasz,

Is it possible for you to submit a pull request for this?

Thanks,

Brian

bbockelm commented 11 years ago

Hi Lukasz,

Any updates?

Brian

bbockelm commented 11 years ago

Closing this ticket as I believe jrevillard's commit fixes it..