Jump to content
Server Maintenance This Week. ×

Xades-EPES signature script for Groovy


This topic is 2042 days old. Please don't post here. Open a new topic instead.

Recommended Posts

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.

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

This topic is 2042 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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.