Jump to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Xades-EPES signature script for Groovy

Featured Replies

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.

can you post some links Ibrahim??

  • 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.

Thanks... will have a look when I have a few moments.

Create an account or sign in to comment

Important Information

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

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.