JDOM - Sign validation

2006-04-06 Thread chirsmail sapl
I am running into an issue with the XML signature validation of JDOM.The issue is that the XML signature validation of DOM converted from JDOM fails.Here are the steps for signing:1)Converted JDOM to DOM using SAXBuilder2)Signed an URI of converted DOM3)Converted the DOM into JDOM againIt works fin

Re: Need lots of help - Validating Signed XML files

2006-04-06 Thread Martin Labarthe Dubois
Hey, i just tested the code with jdk 1.4  public static void main(String[] args) throws Exception {  InputStream inStream = new FileInputStream("c:/temp/LatestCRL.crl");  CertificateFactory cf = CertificateFactory.getInstance("X.509");  X509CRL crl = (X509CRL) cf.generateCRL(inStream);  inSt

Re: Need lots of help - Validating Signed XML files

2006-04-06 Thread Martin Labarthe Dubois
there are a couple of very similar pkcs#7 formats, with openssl you can transform from one to another.   i remember that i had to use it to make some certificates in that format readable from java.   that´s probably the problem.   - Original Message - From: Cláudio Engelsdorf

Re: Need lots of help - Validating Signed XML files

2006-04-06 Thread Cláudio Engelsdorff Avila
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    Certificat

Re: Need lots of help - Validating Signed XML files

2006-04-06 Thread Martin Labarthe Dubois
again, use: Std. Ed. v1.4.2      InputStream inStream = new FileInputStream("fileName-of-crl");   CertificateFactory cf = CertificateFactory.getInstance("X.509");   X509CRL crl = (X509CRL)cf.generateCRL(inStream);   inStream.close();      crl.verify(yourCertificate or publicKey here) --

Re: Need lots of help - Validating Signed XML files

2006-04-06 Thread Cláudio Engelsdorff Avila
If you could download this files and try to help me to open them would be perfect i'm running out of ideas for solving this matter. the revocation list that i'm using is :http://icp-brasil.certisign.com.br/repositorio/lcr/ACCertiSignV3/LatestCRL.crl Anyhelp will more then welcome. Cláudio En

Re: Need lots of help - Validating Signed XML files

2006-04-06 Thread Cláudio Engelsdorff Avila
For that rovacation lists the URL is "http://icp-brasil.certisign.com.br/repositorio/index.htm". Sorry i thought that i had pasted that link here too. Thanks in advance "Martin Labarthe Dubois" <[EMAIL PROTECTED]> 06/04/2006 10:39 Please respond to [email protected] T

Re: Need lots of help - Validating Signed XML files

2006-04-06 Thread Martin Labarthe Dubois
I only found the certificate chains there, but not the revocation lists.   - Original Message - From: Cláudio Engelsdorff Avila To: [email protected] Sent: Thursday, April 06, 2006 10:17 AM Subject: Re: Need lots of help - Validating Signed XML fil

Re: Need lots of help - Validating Signed XML files

2006-04-06 Thread Cláudio Engelsdorff Avila
Yeah it helped for me to see that i'm on the right path. But i'm stil having some problems trying to open revocation lists and so forth. I got my chain and revocations lists from this URL "http://www.certisign.com.br/suporte/downloads.jsp#icp". If someone could enlighten me. Thanks in advance.