mace-opensaml-users - Re: Adding KeyInfo to signature
Subject: OpenSAML user discussion
List archive
- From: anyz <>
- To:
- Subject: Re: Adding KeyInfo to signature
- Date: Thu, 7 May 2009 12:44:33 +0500
- 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=oj8w1ZmYCTCbZCvOxQY8+OtpMo83Xo0O7KuUE27m1yChkjLvSL8YdjE0js6uMkTj4l WTz3wBjMeW17ncIlvnsO4tPKOi9BRN6If0pR+KNZVE/BY8gBMZFdGrZgGUPR2t95Auke 3Bs8Xbcb1FMJ0UWsImgOCR5NCCBjL5pTMR76c=
On debuging i found keyInfo generated is NULL. Is there something wrong with code for generating keyinfo?
On Thu, May 7, 2009 at 11:16 AM, anyz <> wrote:
I have generated authResponse message using OpenSAML. However when verified through http://www.infomosaic.net/SecureXMLVerifyWS.htm service the signatures are not validated. I saw the sample response message at infomosaic includes KeyInfo tags in Signature elements.<Signature xmlns="http://www.w3.org/2000/09/xmldsig#" Id="MySignature"><KeyInfo><KeyValue><RSAKeyValue><Modulus>xxxxx</Modulus><Exponent>AQAB</Exponent></RSAKeyValue></KeyValue><X509Data><X509Certificate>xxxxxxxx</X509Certificate></X509Data></KeyInfo></Signature>I tried tutorial at https://spaces.internet2.edu/display/OpenSAML/OSTwoUserManJavaDSIG and forums but could not add KeyInfo in AuthReponse message. Can you guide what i'm missing? Following is snnipet how id tried adding keyinfo.SecurityConfiguration secConfiguration = Configuration.getGlobalSecurityConfiguration();
null;
NamedKeyInfoGeneratorManager namedKeyInfoGeneratorManager = secConfiguration.getKeyInfoGeneratorManager();
KeyInfoGeneratorManager keyInfoGeneratorManager = namedKeyInfoGeneratorManager.getDefaultManager();
KeyInfoGeneratorFactory keyInfoGeneratorFactory = keyInfoGeneratorManager.getFactory(credential);
KeyInfoGenerator keyInfoGenerator = keyInfoGeneratorFactory.newInstance();
KeyInfo keyInfo =
try{
keyInfo = keyInfoGenerator.generate(credential);
}catch (SecurityException e) {
System.out.println(e);
}
signature.setKeyInfo(keyInfo);Thanks
- Adding KeyInfo to signature, anyz, 05/07/2009
- Re: Adding KeyInfo to signature, anyz, 05/07/2009
- Re: [OpenSAML] Re: Adding KeyInfo to signature, Thai Quoc Nguyen, 05/07/2009
- Re: [OpenSAML] Re: Adding KeyInfo to signature, Brent Putman, 05/07/2009
- Re: [OpenSAML] Re: Adding KeyInfo to signature, Brent Putman, 05/07/2009
- Re: [OpenSAML] Re: Adding KeyInfo to signature, Thai Quoc Nguyen, 05/07/2009
- Message not available
- Message not available
- Re: [Shib-Users] Re: Adding KeyInfo to signature, Brent Putman, 05/07/2009
- Message not available
- Re: Adding KeyInfo to signature, anyz, 05/07/2009
Archive powered by MHonArc 2.6.16.