Closed juanp88 closed 7 years ago
Hola @juanp88 este proyecto viene originalmente de aquí es de un snapshot de webarchive.org, porque ya no existe la pagina. Hay un poco de documentación.
El proyecto me pareció un buen esfuerzo y me lo traje para github y después de eso, vi que cerraron la página (no sé si se debió a eso jaja).
En cuanto a tu duda, hay varios tipso de firma qué puedes consultar aquí, primero descartar que no sea un tema de formato o tipo de firma para así validar si realmente es un error o bug de la librería.
Recuerdo que hay una propiedad del DataToSign, donde se configura el id, del nodo a tener la firma.
dataToSign.setParentSignNode(this.parentId);
Saludos.
Muchas gracias @gdiazs por la respuesta, pude econtrar lo que dices y la forma de ingresar nodo deseado es usando el setter de dicha clase.
dataToSign.setParentSignNode(node);
Se puede usar el tagname o el ID, aunque en mi caso solo me sirve el tagname. Te agradezco que hayas subido este proyecto a github porque llevo mucho tiempo buscando la forma de firmat electronicamente archivos xml con la especificación Xades-EPES y este es el unico que he podido hacer funcionar. Tambien me tope con la librería Xades4j pero su documentación es algo general y no me funcionó. Si sabes algo de esa te agradecería me orientaras ya que tambien me interesa.
Genial, cualquier aporte que quieras hacer al proyecto bienvenido sea, está muy falto de documentación por si quieres empezar por allí :), como ejemplos básicos de uso en el Readme.
Sobre xades4j, intercambié correos con el iniciador del proyecto y le hice algunas consultas sobre Xades-XL y me dijo que no estaba soportada (eso en aquel tiempo), asi que no seguí investigando sobre esas librerías, asi que no creo poder ayudarte.
Buen dia, Juan. Podrias ayudarme en la firma de documentos XML, me he acabado el celebro en PHP y no me funciona,
Mil gracias.
@juanp88 , Hola que tal a la final como te fue con tu caso, de agregar la firma en el nodo ext:ExtensionContent</ext:ExtensionContent>?, podrias contactarme. Saludos Luis
Hola Luis, si pude agregar la firma pero tuve que cambiarme a la librería Xades4J, a esta le quitaron algo entonces la ultima vez que cloné el proyecto ya no me funcionaba nada. Te sugiero le des una mirada a ese proyecto: https://github.com/luisgoncalves/xades4j.
Cordial saludo, estoy tratando de firmar un xml empleando la especificación Xades-EPES. Encontré esta librería y traté usando la clase XAdESEPESSignature pero me genera la firma al final del documento duplicandome las etiquetas </fe:invoice> y. Hay alguna forma que la firma se inserte entre las etiquetas </ext:ExtensionContent>?
Este es el resultado de mi firma: