Skip to Content.
Sympa Menu

mace-opensaml-users - [OpenSAML] Signing Assertion within a Response (C++)

Subject: OpenSAML user discussion

List archive

[OpenSAML] Signing Assertion within a Response (C++)


Chronological Thread 
  • From: Chris Card <>
  • To: <>
  • Subject: [OpenSAML] Signing Assertion within a Response (C++)
  • Date: Wed, 6 Oct 2010 10:31:36 +0000
  • Importance: Normal

Hi,

I'm writing some test code to generate a SAML Response containing a signed Assertion, using the OpenSAML C++ library.

Currently my code looks like this:

            // Sign Assertion
            assertionDom = assertion->marshall(static_cast<DOMDocument*>(0), &signatures);
            // Add Assertion to Response
            response->getAssertions().push_back(assertion);
            responseDom = response->marshall(static_cast<DOMDocument*>(0));

which does produce xml which appears to have a signature in the right place, but when I try to validate the response I get the error
"Digital signature does not validate with the supplied key.".

Before I investigate other things, is the above the correct way to produce a signed Assertion within a Response?

Chris



Archive powered by MHonArc 2.6.16.

Top of Page