mace-opensaml-users - Re: [OpenSAML] XML signatures and canonicalization
Subject: OpenSAML user discussion
List archive
- From: Mitchell Prentice <>
- To:
- Subject: Re: [OpenSAML] XML signatures and canonicalization
- Date: Thu, 2 Apr 2009 23:29:07 +1000
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=JtpQ1GJJ6195JqgW/x9mpAeUG+0BMTW0h9jQNDvXCXNuIV//JvXEf/Ek1UugSmzL+z WgPg1uqY5Cs+PjOv8JpPJs2Wu9DtTiTsUTuwU2/j9u3yaONHa1Z/G+eGEHAjyG2POZiP uk1BFB21Bictwe5fVL7OJemI+g3iTGyp1m+2U=
Thanks. It's actually SAML v1.1 not SAML v2.0 but I presume that makes no difference.
Just to be absolutely certain, here's what the other party is saying: "It is expected behavior (and SAML compliant) to produce a SAML Assertion with white space and apply a digital signature to the XML without the white space".
Can this statement ever be true?
The other party goes on to imply that canonicalization handles the whitespace.
Can this statement ever be true?
From my experience and from looking at http://www.w3.org/TR/2001/REC-xml-c14n-20010315#Example-WhitespaceInContent I believe adding whitespace to the document content will always break signature validation.
Thanks
Mitch
On Thu, Apr 2, 2009 at 8:49 AM, Anil Saldhana <> wrote:
Mitch,
you are correct. Whitespaces/pretty printing etc will fail sig validation.
Cheers.
On Wed, Apr 1, 2009 at 5:39 PM, Mitchell Prentice <> wrote:
HelloI have a signed SAML 2.0 assertion that includes http://www.w3.org/2001/10/xml-exc-c14n# canonicalization. Apparently the creator of this signed assertion signed the assertion and then formatted the assertion with whitespace characters after signing. I can verify the signature if the whitespace characters are not added but if the whitespace characters are added then the signature verification fails. The creator of the SAML assertion says that canonicalization is supposed to remove the whitespaces and that it's a bug if you cannot verify the signature even if the XML has been modified after signing by the inclusion of whitespaces. My understanding is that this is not the case and that you cannot add whitespace to the XML and still expect the signature to verify. Which is correct?ThanksMitch
- XML signatures and canonicalization, Mitchell Prentice, 04/01/2009
- Re: [OpenSAML] XML signatures and canonicalization, Anil Saldhana, 04/01/2009
- Re: [OpenSAML] XML signatures and canonicalization, Mitchell Prentice, 04/02/2009
- RE: [OpenSAML] XML signatures and canonicalization, Bob Jacoby, 04/02/2009
- Re: [OpenSAML] XML signatures and canonicalization, Chad La Joie, 04/02/2009
- Re: [OpenSAML] XML signatures and canonicalization, Anil Saldhana, 04/02/2009
- Re: [OpenSAML] XML signatures and canonicalization, Xavier Drudis Ferran, 04/02/2009
- Re: [OpenSAML] XML signatures and canonicalization, Mitchell Prentice, 04/02/2009
- Re: [OpenSAML] XML signatures and canonicalization, edward . thompson, 04/02/2009
- Re: [OpenSAML] XML signatures and canonicalization, Jim Fox, 04/02/2009
- Re: [OpenSAML] XML signatures and canonicalization, Mitchell Prentice, 04/02/2009
- Re: [OpenSAML] XML signatures and canonicalization, Anil Saldhana, 04/02/2009
- Re: [OpenSAML] XML signatures and canonicalization, Mitchell Prentice, 04/02/2009
- Re: [OpenSAML] XML signatures and canonicalization, Anil Saldhana, 04/01/2009
Archive powered by MHonArc 2.6.16.