Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

X509CRL problems?

18 views
Skip to first unread message

Francis Libble

unread,
Sep 26, 2001, 7:23:26 AM9/26/01
to
I am currently trying to validate a commercial (Verisign) CRL using
java, however, the attached sample code:

CertificateFactory certificatefactory =
CertificateFactory.getInstance("X.509");
FileInputStream fileinputstream = new FileInputStream("test.crl");
X509CRL x509crl = (X509CRL)certificatefactory.generateCRL(fileinputstream);

results in the following exception:

java.security.cert.CRLException: Parsing error:
DerInputStream.getLength(): leng
thTag=127, too big.
at sun.security.x509.X509CRLImpl.<init>(Unknown Source)
at sun.security.provider.X509Factory.engineGenerateCRL(Unknown
Source)
at java.security.cert.CertificateFactory.generateCRL(Unknown
Source)

Any ideas?

Thanks

Flibble

Ron C.

unread,
Oct 9, 2001, 9:42:26 AM10/9/01
to
This seems to indicate a DER decoding failure of the CRL. You might want to
verify that the contents of 'test.crl' is a proper DER encoding.

Ron


"Francis Libble" <garyo...@yahoo.co.uk> wrote in message
news:955f45df.01092...@posting.google.com...

0 new messages