Ibrahim Bittar Posted October 1, 2018 Posted October 1, 2018 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.
Ibrahim Bittar Posted October 2, 2018 Author Posted October 2, 2018 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.
john renfrew Posted October 3, 2018 Posted October 3, 2018 Thanks... will have a look when I have a few moments.
Recommended Posts
This topic is 2585 days old. Please don't post here. Open a new topic instead.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now