I'm using the newest hava version (1.5), yet still throws a tag parse error when i try to open.
I tried this code to open th crl file:
// open an input stream to the file
FileInputStream fis = new FileInputStream(filename);
// instantiate a CertificateFactory for X.509
CertificateFactory cf = CertificateFactory.getInstance("X.509");
// extract the certification path from
// the PKCS7 SignedData structure
CertPath cp = cf.generateCertPath(fis, "PKCS7");
// print each certificate in the path
List certs = cp.getCertificates();
Iterator i = certs.iterator();
while (i.hasNext()) {
X509Certificate cert = (X509Certificate) i.next();
System.out.println(cert);
}
And it gives me:
java.security.cert.CertificateException: IOException parsing PKCS7 data: sun.security.pkcs.ParsingException: X509.ObjectIdentifier() -- data isn't an object ID (tag = 48)
I don't like to bother anyone but i tried everything that i could think of.
- Need lots of help - Validating Signed XML files Cláudio Engelsdorff Avila
- Re: Need lots of help - Validating Signed ... Martin Labarthe Dubois
- Re: Need lots of help - Validating Sig... Cláudio Engelsdorff Avila
- Re: Need lots of help - Validating Signed ... Milan Tomic
- Re: Need lots of help - Validating Sig... Cláudio Engelsdorff Avila
- Re: Need lots of help - Validating... Martin Labarthe Dubois
- Re: Need lots of help - Valida... Cláudio Engelsdorff Avila
- Re: Need lots of help - V... Cláudio Engelsdorff Avila
- Re: Need lots of help... Martin Labarthe Dubois
- Re: Need lots of ... Cláudio Engelsdorff Avila
- Re: Need lots of ... Martin Labarthe Dubois
- Re: Need lots of ... Martin Labarthe Dubois
