<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Need help debugging SAML token signatures in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/need-help-debugging-saml-token-signatures/m-p/7683409#M1576225</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;what do you think about the fact that the error didn't change when removing the sender's certificate from all trust stores?&lt;/P&gt;&lt;P&gt;Isn't STRUST &amp;gt; System PSE or WS Security Standard or the other WS Security truststores the right place to add my cert?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jens&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 08 Feb 2011 09:55:45 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2011-02-08T09:55:45Z</dc:date>
    <item>
      <title>Need help debugging SAML token signatures</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/need-help-debugging-saml-token-signatures/m-p/7683405#M1576221</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to set up a scenario, where my Web Service client (non-SAP) requests a SAML 1.1 assertion from its STS with confirmation method = sender-vouches.&lt;/P&gt;&lt;P&gt;The client inserts the received token into its SOAP request and signs&lt;/P&gt;&lt;P&gt;- the body and timestamp and&lt;/P&gt;&lt;P&gt;- the security token reference &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The produce message looks very similar to the one I found in the wiki at:  &lt;A href="http://wiki.sdn.sap.com/wiki/display/Security/Single" target="test_blank"&gt;http://wiki.sdn.sap.com/wiki/display/Security/Single&lt;/A&gt;&lt;EM&gt;Sign&lt;/EM&gt;on&lt;EM&gt;using&lt;/EM&gt;SAML&lt;EM&gt;Sender&lt;/EM&gt;Vouches+example&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My Web Service provider (AS ABAP 7.0 EHP 2 - the current trial server) rejects the message with the following error message:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
CX_WS_SECURITY_FAULT : An exception occurred: XML Signature digest error for reference wssecurity_signature_id_21 | program: CL_ST_CRYPTO==================CP include: CL_ST_CRYPTO==================CM00C line: 234
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Somewhere later in the trace, I find: ...  with internal error id 1001&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;wssecurity_signature_id_21 is the id of the body part in my SOAP request.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I imported the sender's signer cert in every truststore in STRUST (System PSE an all WS-Security and SAML ones). I have also executed report WSS_SETUP for initial configuration. My provider is set up to require no transport level security and SAML for authentication.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How do I debug this type of issue? &lt;/P&gt;&lt;P&gt;Is there documentation how to interpret the error message? &lt;/P&gt;&lt;P&gt;- Didn't I sign the correct elements?&lt;/P&gt;&lt;P&gt;- Was the certificate or its signer untrusted? [I even tried with self-signed certs.]&lt;/P&gt;&lt;P&gt;- Did I chose an inconvenient transform or canonicalization algorithm?&lt;/P&gt;&lt;P&gt;- ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried reviewing the code of CL_ST_CRYPTO in SE80 - however, not being an ABAP expert, I didn't even find CM00C line 234 and I don't think I should try or need to do this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What am I doing wrong and more importantly - how would I figure this out myself?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tried to post the SOAP message, but this messed up the entire formatting...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Jens Wanske on Feb 7, 2011 3:02 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Feb 2011 13:53:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/need-help-debugging-saml-token-signatures/m-p/7683405#M1576221</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-02-07T13:53:04Z</dc:date>
    </item>
    <item>
      <title>Re: Need help debugging SAML token signatures</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/need-help-debugging-saml-token-signatures/m-p/7683406#M1576222</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I tried removing the sender's certificate from all truststores and the error remained the same!&lt;/P&gt;&lt;P&gt;Thus I assume the error is somehow related to the certificate / truststore / fact that I selected no transport guarantee...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;... Still didn't figure out how to post a SOAP message here ... It seems as if all XML surroundings are lost even with the code tag around it ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Jens Wanske on Feb 7, 2011 3:14 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Feb 2011 14:12:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/need-help-debugging-saml-token-signatures/m-p/7683406#M1576222</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-02-07T14:12:27Z</dc:date>
    </item>
    <item>
      <title>Re: Need help debugging SAML token signatures</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/need-help-debugging-saml-token-signatures/m-p/7683407#M1576223</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How do you sign that message?  I am not sure if there is any suitable method but if you look at class CL_ST_CRYPTO then you can see what is checked. You could try to put external debugger into first method which is called (my guess is method CHECK_SIGNATURE). The reason why you can't find line 234 is that during activation all methods are concatenated into one include.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Feb 2011 20:40:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/need-help-debugging-saml-token-signatures/m-p/7683407#M1576223</guid>
      <dc:creator>mvoros</dc:creator>
      <dc:date>2011-02-07T20:40:23Z</dc:date>
    </item>
    <item>
      <title>Re: Need help debugging SAML token signatures</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/need-help-debugging-saml-token-signatures/m-p/7683408#M1576224</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I was able to set an external breakpoint at various places in SE80 (even the constructor of CL_ST_CRYPTO and in IF_SOAP_TRANSPORT_BINDING~PROCESS_BODY where I found the last successful trace string). But when sending a message from my external client, the response gets back immediately - with no chance of debugging on the server side.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do I need somehow enable a debug mode?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I managed to post my SOAP request and SOAP response to the wiki page as a comment: &lt;A href="http://wiki.sdn.sap.com/wiki/display/Security/Single" target="test_blank"&gt;http://wiki.sdn.sap.com/wiki/display/Security/Single&lt;/A&gt;&lt;EM&gt;Sign&lt;/EM&gt;on&lt;EM&gt;using&lt;/EM&gt;SAML&lt;EM&gt;Sender&lt;/EM&gt;Vouches+example?focusedCommentId=224003774&amp;amp;#comment-224003774&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sorry for hijacking... I can try to remove the post if it is inconvenient to be there, however, I think hints on troubleshooting can be of general interest.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Jens&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Feb 2011 08:32:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/need-help-debugging-saml-token-signatures/m-p/7683408#M1576224</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-02-08T08:32:57Z</dc:date>
    </item>
    <item>
      <title>Re: Need help debugging SAML token signatures</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/need-help-debugging-saml-token-signatures/m-p/7683409#M1576225</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;what do you think about the fact that the error didn't change when removing the sender's certificate from all trust stores?&lt;/P&gt;&lt;P&gt;Isn't STRUST &amp;gt; System PSE or WS Security Standard or the other WS Security truststores the right place to add my cert?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jens&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Feb 2011 09:55:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/need-help-debugging-saml-token-signatures/m-p/7683409#M1576225</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-02-08T09:55:45Z</dc:date>
    </item>
    <item>
      <title>Re: Need help debugging SAML token signatures</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/need-help-debugging-saml-token-signatures/m-p/7683410#M1576226</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i just realized that debugger won't work because you are not logged yet. Honestly, I don't know how to debug it. It's funny that it failed on #wssecurity_signature_id_21 but not on #wssecurity_signature_id_20 (I assume here that it's processed according to order in XML).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you enter class CL_ST_CRYPTO into search on service.sap.com/notes then you get some notes related to problems for specific clients such Oracle. I am not saying those notes will help you but it might be a similar problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I guess you've already read Note 1254821 which describes what you need to set up for this scenario.It also mentions which PSE needs to have the key.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Feb 2011 10:20:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/need-help-debugging-saml-token-signatures/m-p/7683410#M1576226</guid>
      <dc:creator>mvoros</dc:creator>
      <dc:date>2011-02-08T10:20:44Z</dc:date>
    </item>
    <item>
      <title>Re: Need help debugging SAML token signatures</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/need-help-debugging-saml-token-signatures/m-p/7683411#M1576227</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;SAML Sender-Vouches are assertions that are locally issued. SAML Sender-Vouches is suited to server to server communication, which does not involve an STS. For desktop to server authentication, SAML holder-of-key must be used.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When using an STS, you should use SAML with the holder-of-key confirmation method.&lt;/P&gt;&lt;P&gt;I have described a set of solutions for EE5, Axis2, wss4j, .Net WCF described in &lt;A href="http://sap-press.de/2409" target="test_blank"&gt;http://sap-press.de/2409&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Feb 2011 10:20:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/need-help-debugging-saml-token-signatures/m-p/7683411#M1576227</guid>
      <dc:creator>martijndeboer</dc:creator>
      <dc:date>2011-02-08T10:20:58Z</dc:date>
    </item>
  </channel>
</rss>

