<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <br>
    <div class="moz-cite-prefix">On 5/16/14 11:45 AM,
      <a class="moz-txt-link-abbreviated" href="mailto:pvenkatesh@moxiesoft.com">pvenkatesh@moxiesoft.com</a> wrote:<br>
    </div>
    <blockquote cite="mid:1400255159809-7600652.post@n2.nabble.com"
      type="cite">
      <pre wrap="">

I am comparing this with  the IDP Metadata XML they sent over( being fed to
our SP) .  

MEdatadata XML also has ,  

&lt;ds:DigestValue&gt; , &lt;ds:SignatureValue&gt; and   &lt;ds:X509Certificate&gt;

</pre>
    </blockquote>
    <br>
    Ok, sounds like they are giving you signed metadata.&nbsp; That's fine.&nbsp;
    <br>
    <br>
    <br>
    <blockquote cite="mid:1400255159809-7600652.post@n2.nabble.com"
      type="cite">
      <pre wrap="">BUT, only the &lt;ds:X509Certificate&gt; information matches , 

the content in the &lt;ds:DigestValue&gt; , &lt;ds:SignatureValue&gt;  is DIFFERENT.</pre>
    </blockquote>
    <br>
    That's expected.&nbsp; The signature over the metadata document has
    nothing to do with the signature over their responses.&nbsp; So naturally
    the DigestValue and SignatureValue will be different.<br>
    <br>
    For the X509Certificate:&nbsp; what you've said is a little ambiguous.&nbsp;
    That element can appear within the KeyInfo of the Signature, in
    which case it isn't (necessarily) related to verifying their
    responses (could be the same cert, but that's irrelevant).<br>
    <br>
    What is relevant, and what you should be looking for, is the
    KeyDescriptor(s) and child elements that appear under the
    IDPSSODescriptor within the IdP's metadata.&nbsp; The keys/certs which
    appear there are what will be used to verify the response and
    assertion signatures by your SP.&nbsp; The public keys and/or certs there
    have to match what they are signing their responses and assertions
    with.<br>
    <br>
    <br>
    <blockquote cite="mid:1400255159809-7600652.post@n2.nabble.com"
      type="cite">
      <pre wrap="">

 Is this causing the problem and giving out the ""Message was signed,
signature could not be verified"  message? 
</pre>
    </blockquote>
    <br>
    No.<br>
    <br>
    <blockquote cite="mid:1400255159809-7600652.post@n2.nabble.com"
      type="cite">
      <pre wrap="">
If i need to provide their key in SP somewhere where do i do it? 
</pre>
    </blockquote>
    <br>
    <br>
    In your SP, you need to load their metadata.&nbsp; That's how the SP
    knows about the keys and other info it needs to process the IdP's
    response.&nbsp; That's covered in the SP install docs as one of the basic
    steps in initial setup and configuration.<br>
    <br>
  </body>
</html>