Skip to Content.
Sympa Menu

mace-opensaml-users - XML signing and valdation

Subject: OpenSAML user discussion

List archive

XML signing and valdation


Chronological Thread 
  • From: "Mattias Jonsson" <>
  • To: <>
  • Subject: XML signing and valdation
  • Date: Tue, 13 May 2008 11:36:54 +0200
  • Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:subject:date:message-id:mime-version:content-type:x-mailer:thread-index:x-mimeole; b=ozOeJEf3rLeqS42g00+66PS7sDmpm/8DzzfgV+567/t/UqyjzW1GFYw8pbOfuKIudun4MOGgt85eYwCVo6a2ruuF3j/8F1oHc3hmH8tHMBjQhXQ0uIJiiDWuXlvrIUe31VN4gxZ7dWzufhq+ypBoS0ejq6ZK8W44an9UguaDSU4=

Hi!
 
I'm a beginner to XML signing and I have some problem to get it work.
 
My test setup:
 
1. I have singed an Assertion and generated the XML file
2. I parse the XML file and try to validate the signature of the Assertion object
 
I get a ValidationException when I try to validate the Assertion:
 
org.opensaml.xml.validation.ValidationException: Signature did not validate against the credential's key
    at org.opensaml.xml.signature.SignatureValidator.validate(SignatureValidator.java:78)
    ....
 
Anyone that has a fully working example of the use-case?
 
SAMLObject => Sign => Generate XML file => Read XML file => Validate signature on SAMLObject
 
Regards,
Mattias



Archive powered by MHonArc 2.6.16.

Top of Page