"Paulo Soares" <[EMAIL PROTECTED]> writes:
> I don't know if the bug is in Acrobat
No, it is not related to Acrobat.
> or in the JDK
Presumably, see below.
> but what I do is to ask the certificates from the PKCS#7 using a jdk
> method.
More precisely: it is
CertificateFactory cf = CertificateFactory.getInstance("X509");
Collection col = cf.generateCertificates(new FileInputStream(certs[i]));
The second line throws the exception, but only on some
certificates/formats. Most of the times it works okay.
Tested with JDK 1.5.0_06, JDK 1.5.0_07 and JRE 6 Beta 2.
Maybe best is to catch the exception, and turn it into "Malformed
certificate (not CER/DER format)" or something alike.
> I know that it will work with bouncycastle.
Yes, I've not seen the error with BouncyCastle.
-- Johan
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions