October 1, 20187 yr Hello I'm looking for a sample script that allows me to sign a xml file using a p12 certificate and obtain it with a Xades-EPES signature. I've seen some examples based on Java but don't know how they can be translated to Groovy, if possible. Any help will be appreciated.
October 2, 20187 yr Author Hi John, sure! Here's one link which is in Spanish but all classes are in java so it should not be a problem: https://github.com/JonhCR/FirmaXadesEpes/tree/master/compilado Here's another one: https://svn.cesecore.eu/svn/signserver/vendor/xades4j/1.3.0/src/main/java/xades4j/production/SignerEPES.java This one seems to be very famous: https://github.com/luisgoncalves/xades4j/blob/master/src/main/java/xades4j/production/SignerEPES.java Xades signatures are used in most South American countries and AFAIK in Europe for signing digital invoices. In México we still use SHA256 signatures, along with a XML file. So I think it's important. There are several formats of Xades signatures, each one has a different purpose. The EPES variation is being deprecated but it is in use in Costa Rica and probably in Chile and Colombia.
Create an account or sign in to comment