Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

sign xml with XADES-EPES using ABAP

0 Kudos

Good day

Is it possible to sign an XML file using XADES-EPES in ABAP

I've been using class cl_sec_sxml_dsignature and could sign the xml with SHA256 but no XADES .

I know from sap notes that PI can be use but We do not have PI

btw this is related to Digital Invoice

Thank you for your help and time

5 REPLIES 5

kimmo_sirpoma
Participant
0 Kudos

Hi Perez, did you solved your problem? We are also facing problem where XML-message needs be signed using XADES type of signature element ds:signature after the main payload.

The result XML should be like this:

<xml....>

<MyMainRootElementAccordingToSchema>

<MybusinessContent>

...lots of business content relevant complex structures

</MyBusinessContent>

... complex structures according to signature schema. See picture embedded.

</MyMainRootElementAccordingToSchema>

0 Kudos

Hello Kimmo and Benjamin,

I decided to build the structure manually but I am facing 2 issues building XADES-BES structure:

1. How can I get DigestValue?

2. How can I get SignatureValue?

I have this example, the tags mentioned, were highlighted. Could you help me?

Really apreciate your replies,

Regards,

Carlos Andrés

0 Kudos

Hi Carlos,

I have a similar requirement. Were you able to solve your problem? If yes could you please share the solution.

Thanks in regards

Aruna

0 Kudos

Hi,

How were you able to sign with a sha256 algorithm?

I try several notes but I'm only able to sign with SHA1, even in my STRUST config I only visualize the SHA1 algo.