I'm currently working on some legal requirements for my country (electronic invoicing) but I'm stuck on the signing part, here the background:
- The government provides every user with a .p12 certificate file
- Once an XML is generated, it has to be signed with XAdES-EPES based on the previous mentioned .p12 certificate.
I don't really understand much about certificates and security artifacts, I found a java library called: Xades4J however most of the examples mention a KeyStore and TSA (Which btw don't really understand what a TSA is), the scenario that I have seems very simple to use, but I believe most of the examples mentioned are far to complex.
Can anybody give me a hand about the concepts and/or provide with an example of how you can sign using XAdES-EPES having already a p12 file?
I saw some C# examples that I'll test too, thing is I'm mostly coding in Java.
Thanks in advance