mace-opensaml-users - Re: Signature Validation Error: object not initialized for signature or verification
Subject: OpenSAML user discussion
List archive
Re: Signature Validation Error: object not initialized for signature or verification
Chronological Thread
- From: Brent Putman <>
- To:
- Subject: Re: Signature Validation Error: object not initialized for signature or verification
- Date: Thu, 07 Feb 2008 20:13:28 -0500
Dave, I did some diagnosis of this bug, see the xmlsec bugzilla entry. However, it wasn't clear from your description if you were encountering this error under the same conditions, so I just wanted to confirm. The error with the test case in the bugzilla entry happens when you initially use the same XMLSignature instance to both sign and verify something (in the same thread, actually), and then attempt to do more verifications (on another XMLSignature instance) using the same key (where "same" means by reference equality). Signing and then also immediately verifying is something you might do in units tests or test code or whatever, but not typically in production code, so I wanted to confirm that that was the condition under which you saw the error. If so, the official line from the Apache xmlsec team has usually been: don't use the Apache XMLSignature instance for both signing and verifying a signature. Instead reconstitute a new XMLSignature around the ds:Signature Element and use that for verifying. (Yeah, they should fix so it will work correctly, but...). For OpenSAML that would be accomplished by unmarshalling a new XMLObject tree around the DOM of your signed Response or whatever. If on the other hand, you were for example processing a signed Response that you received from somewhere, and trying to just verify multiple signatures within it, then let me know. That probably means it's a different sort of bug. I've been looking at xmlsec bugs lately and would definitely want to add it to the list. I'll say, though, offhand, from looking at the Apache signature code, I don't see how that could be happening. Thanks, Brent Dave Badia wrote: Hi - |
- Re: Signature Validation Error: object not initialized for signature or verification, Brent Putman, 02/07/2008
Archive powered by MHonArc 2.6.16.