To prevent any more confusion, I basically want to generate the following XML document. I have the necessary keys and the input data, i.e. Alpha and Beta. How do I go about signing the document (creating the output document given below)? Even if I use XMLsec what kind of XML document should I give as input? Should the soap envelope and header be included? I hope I have made my problem clear.
Thanks, Vineet --- REQUIRED OUTPUT: <?xml version="1.0" encoding="UTF-8"?> <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:wsse="http://schemas.xmlsoap.org/ws/2002/04/secext"> <soap:Header><wsse:BinarySecurityToken EncodingType="wsse:Base64Binary" Id="X509Token" ValueType="wsse:X509v3">MI...IQ</wsse:BinarySecurityToken> <wsse:Security> <Signature xmlns="http://www.w3.org/2000/09/xmldsig#"> <SignedInfo xmlns="http://www.w3.org/2000/09/xmldsig#"> <CanonicalizationMethod Algorithm="http://www.w3.org/TR/2001/REC-xml-c14n-20010315"/> <SignatureMethod Algorithm="http://www.w3.org/2000/09/xmldsig#rsa-sha1"/> <Reference URI="#MsgBody"> <DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1"/> <DigestValue>pav...1k=</DigestValue> </Reference> </SignedInfo> <SignatureValue>Jxz...jQ=</SignatureValue> <KeyInfo> <SecurityTokenReference xmlns="http://schemas.xmlsoap.org/ws/2002/04/secext"> <Reference URI="X509Token"/> </SecurityTokenReference> </KeyInfo> </Signature> </wsse:Security> </soap:Header> <soap:Body Id="MsgBody"> <firstName>Alpha</firstName><lastName>Beta</lastName> </soap:Body> </soap:Envelope> On Tue, 30 Nov 2004 14:13:17 -0800, Aleksey Sanin <[EMAIL PROTECTED]> wrote: > Hm.. I have no idea what are you talking about: "I get the idea > that ... document is signed" vs. "the document does not contain > the signature". > > BTW, using mailing list is a better way to get response. > > Aleksey _______________________________________________ xmlsec mailing list [EMAIL PROTECTED] http://www.aleksey.com/mailman/listinfo/xmlsec
