Bug 4290 - Certificate load error
: Certificate load error
Status: RESOLVED FIXED
: CoG jglobus
security
: unspecified
: PC Windows XP
: P3 normal
: ---
Assigned To:
:
:
:
:
  Show dependency treegraph
 
Reported: 2006-03-14 13:34 by
Modified: 2006-03-14 14:31 (History)


Attachments


Note

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


Description From 2006-03-14 13:34:31
Error:

> > 2006-03-13 16:41:57,601 ERROR gsi.TrustedCertificates 
> > [Timer-3,loadCert:210]
> > Certificate /etc/grid-security/certificates/b57985f0.0 failed to load.
> > java.lang.NullPointerException
> >         at
> > org.bouncycastle.asn1.x509.X509CertificateStructure.getSubject
> > (X509CertificateStructure.java:100)
> >         at
> > org.bouncycastle.jce.provider.X509CertificateObject.getSubject
> > DN(X509CertificateObject.java:103)

Certificate that causes the error:

-----BEGIN CERTIFICATE-----
MIID8TCCA1qgAwIBAgICAL8wDQYJKoZIhvcNAQEEBQAwgcgxCzAJBgNVBAYTAlVT
MRMwEQYDVQQIEwpDYWxpZm9ybmlhMRQwEgYDVQQHEwtMb3MgQW5nZWxlczEqMCgG
A1UEChMhVW5pdmVyc2l0eSBvZiBTb3V0aGVybiBDYWxpZm9ybmlhMUEwPwYDVQQD
EzhVbml2ZXJzaXR5IG9mIFNvdXRoZXJuIENhbGlmb3JuaWEgUEtJLUxpdGUgQ0Es
IHJlbGVhc2UgMTEfMB0GCSqGSIb3DQEJARYQbm1pYWRtaW5AdXNjLmVkdTAeFw0w
NjAzMDIyMDE4MDJaFw0wNzAzMDIyMDE4MDJaMIHgMQswCQYDVQQGEwJVUzETMBEG
A1UECBMKQ2FsaWZvcm5pYTEUMBIGA1UEBxMLTG9zIEFuZ2VsZXMxKjAoBgNVBAoT
IVVuaXZlcnNpdHkgb2YgU291dGhlcm4gQ2FsaWZvcm5pYTEmMCQGA1UECxMdSW5m
b3JtYXRpb24gU2VydmljZXMgRGl2aXNpb24xMTAvBgNVBAMTKFVuaXZlcnNpdHkg
b2YgU291dGhlcm4gQ2FsaWZvcm5pYSBLQ0EgdjMxHzAdBgkqhkiG9w0BCQEWEG5t
aWFkbWluQHVzYy5lZHUwgZ8wDQYJKoZIhvcNAQEBBQADgY0AMIGJAoGBANyalt+c 
4rfCFfStOMNA3ZhY0HBlxL1x+LAg+x+EqzbKEYGoxG/0fRmxPQAUfG21A0qiQm7P
fgVrVTgzIE8J5yYOmYZOpIoJYSPD9lp7j2cZeBWwWdFV60pMDOUNgnXus1jZM3IJ 
U2prvX/bjP2LlPFj1QS+HLcL/Oe+K2Db5T19AgMBAAGjgc8wgcwwUgYDVR0fBEsw  
STBHoEWgQ4ZBaHR0cDovL3d3dy51c2MuZWR1L2lzZC9zZXJ2aWNlcy9hdXRoeC9D 
QS9VU0MtUEtJLUxpdGUtQ0EuY3JsLmh0bWwwdgYDVR0gBG8wbTBrBgorBgEEAegz 
AgEDMF0wWwYIKwYBBQUHAgEWT2h0dHA6Ly93d3cudXNjLmVkdS9pc2Qvc2Vydmlj
ZXMvYXV0aHgvQ0EvVVNDLVBLSS1MaXRlLUNBLmNlcnRpZmljYXRlcG9saWN5Lmh0
bWwwDQYJKoZIhvcNAQEEBQADgYEARqC0Y7pvsJ1uAMzhWD0qAXbwqD2tv05SbZuj 
0HY/n1/L/G67FNnmAlrDt4g95cbvFJ8I7G281nSAi+3gp3lGRl8om3VdUcqRCtjs 
+xQ+hjgbmRCJNfmdEmSsAiFLibXAbArxsvgMWFc7lh7YLtuOD/oikmns6oCI6g6X
z9TEti4= 
-----END CERTIFICATE-----
------- Comment #1 From 2006-03-14 13:35:51 -------
I traced this error to a problem in the Base64 implementation in 
org.globus.util package.
------- Comment #2 From 2006-03-14 13:49:56 -------
I replaced the org.globus.util.Base64 class with calls to BouncyCastle Base64 
library. That fixed the problem.
I committed the fix (so far) to trunk (and updated gt4 trunk with the new cog-
jglobus.jar file).
------- Comment #3 From 2006-03-14 14:31:57 -------
Committed the fix to globus_4_0_branch of cog and gt4.