Quantcast
Channel: SCN : Discussion List - Security
Viewing all articles
Browse latest Browse all 2353

Signing an XML with Report SSF02

$
0
0

Hi Experts,

 

I am a newby in signing documents and I am facing a problem with signing an XML using report SSF02. I can sign an XML and it looks like:

 

 

But I expected something like that:

 

<?xml version="1.0" encoding="UTF-8"?>

<PurchaseOrder>

<Item number="130046593231">

  <Description>Video Game</Description>

  <Price>10.29</Price>

</Item>

<Buyer id="8492340">

  <Name>My Name</Name>

  <Address>

  <Street>One Network Drive</Street>

  <Town>Burlington</Town>

  <State>MA</State>

  <Country>United States</Country>

  <PostalCode>01803</PostalCode>

  </Address>

</Buyer>

<Signature xmlns="http://www.w3.org/2000/09/xmldsig#">

  <SignedInfo>

  <CanonicalizationMethod

  Algorithm="http://www.w3.org/TR/2001/REC-xml-c14n-20010315"/>

  <SignatureMethod

  Algorithm="http://www.w3.org/2000/09/xmldsig#rsa-sha1"/>

  <Reference URI="">

  <Transforms>

  <Transform

  Algorithm="http://www.w3.org/2000/09/xmldsig#enveloped-signature"/>

  </Transforms>

  <DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1"/>

  <DigestValue>tVicGh6V+8cHbVYFIU91o5+L3OQ=</DigestValue>

  </Reference>

  </SignedInfo>

  <SignatureValue>

  dJDHiGQMaKN8iPuWApAL57eVnxz2BQtyujwfPSgE7HyKoxYtoRB97ocxZ

  8ZU440wHtE39ZwRGIjvwor3WfURxnIgnI1CChMXXwoGpHH//Zc0z4ejaz

  DuCNEq4Mm4OUVTiEVuwcWAOMkfDHaM82awYQiOGcwMbZe38UX0oPJ2DOE=

  </SignatureValue>

  <KeyInfo>

  <X509Data>

  <X509SubjectName>

  CN=My Name,O=Test Certificates Inc.,C=US

  </X509SubjectName>

  <X509Certificate>

  MIIB9zCCAWCgAwIBAgIERZwdkzANBgkqhkiG9w0BAQUFADBAMQswCQYD

  VQQGEwJVUzEfMB0GA1UEChMWVGVzdCBDZXJ0aWZpY2F0ZXMgSW5jLjEQ

  MA4GA1UEAxMHTXkgTmFtZTAeFw0wNzAxMDMyMTE4MTFaFw0zMTA4MjUy

  ...

  </X509Certificate>

  </X509Data>

  </KeyInfo>

</Signature>

</PurchaseOrder>

 

What do I wrong? Can someone give me some advise or does someone have an example how to handle signing xml within ABAP?

 

Thanks in advance.

 

Cheers, Alex


Viewing all articles
Browse latest Browse all 2353

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>