- From: Ahmed Reda KACED <redadibrad@yahoo.fr>
- Date: Wed, 22 Jun 2005 12:19:22 +0200 (CEST)
- To: w3c-ietf-xmldsig@w3.org
--0-97675657-1119435562=:98175 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Hello, I’m a beginner with XML Signature I’m actually using the IBM toolkit to sign my DID (cf joined), but I’ve some problems to sign the licence (only the licence), with this method I’m signing all the descriptor “toTest” (<Descriptor Id= "toTest">), but I want to sign only the licence node (<r:license licenseId="sharing">) the problem is that I can't add an "id=.." to licence, to be adequat with mpeg21 REL :-( I tried to use an Xpath transform but without success, can you please take a look to my DID and tell me if you have an idea for an other transform method to sign only what I want. All idea are welcome Thanks in Advance. Reda PS: I used templateSign and VerifyCUI from the sample og the IBM toolkit java -cp .;xercesImpl.jar;xalan.jar;xss4j.jar;bcprov-jdk15-127.jar dsig.VerifyCUI output_TestDID.xml java -cp .;xalan.jar;xercesImpl.jar;xss4j.jar;dsig;bcprov-jdk15-127.jar dsig.TemplateSign -keystore Tiramisu.keystore author_1 tiramisu tiramisu TestDID.xml > output_TestDID.xml --------------------------------- Appel audio GRATUIT partout dans le monde avec le nouveau Yahoo! Messenger Téléchargez le ici ! --0-97675657-1119435562=:98175 Content-Type: text/html; charset=iso-8859-1 Content-Transfer-Encoding: 8bit <DIV> <DIV> <DIV> <P class=MsoNormal><FONT face=Arial size=2><SPAN lang=EN-GB style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">Hello, I’m a beginner with XML Signature <?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /><o:p></o:p></SPAN></FONT></P> <P class=MsoNormal><FONT face=Arial size=2><SPAN lang=EN-GB style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">I’m actually using the IBM toolkit to sign my DID (cf joined), but I’ve some problems to sign the licence (only the licence), with this method I’m signing all the descriptor “toTest” (</SPAN></FONT><FONT color=blue><SPAN lang=EN-GB style="BACKGROUND: white; COLOR: blue"><</SPAN></FONT><FONT color=maroon><SPAN lang=EN-GB style="BACKGROUND: white; COLOR: maroon">Descriptor</SPAN></FONT><FONT color=red><SPAN lang=EN-GB style="BACKGROUND: white; COLOR: red"> Id</SPAN></FONT><FONT color=blue><SPAN lang=EN-GB style="BACKGROUND: white; COLOR: blue">= "</SPAN></FONT><FONT color=black><SPAN lang=EN-GB style="BACKGROUND: white; COLOR: black">toTest</SPAN></FONT><FONT color=blue><SPAN lang=EN-GB style="BACKGROUND: white; COLOR: blue">"></SPAN></FONT><FONT face=Arial size=2><SPAN lang=EN-GB style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">), but I want to sign only the licence node (</SPAN></FONT><FONT color=blue><SPAN lang=EN-GB style="BACKGROUND: white; COLOR: blue"><</SPAN></FONT><FONT color=maroon><SPAN lang=EN-GB style="BACKGROUND: white; COLOR: maroon">r:license</SPAN></FONT><FONT color=red><SPAN lang=EN-GB style="BACKGROUND: white; COLOR: red"> licenseId</SPAN></FONT><FONT color=blue><SPAN lang=EN-GB style="BACKGROUND: white; COLOR: blue">="</SPAN></FONT><FONT color=black><SPAN lang=EN-GB style="BACKGROUND: white; COLOR: black">sharing</SPAN></FONT><FONT color=blue><SPAN lang=EN-GB style="BACKGROUND: white; COLOR: blue">"></SPAN></FONT><FONT face=Arial size=2><SPAN lang=EN-GB style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">) </SPAN></FONT></P> <P class=MsoNormal><FONT face=Arial size=2><SPAN lang=EN-GB style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"><o:p>the problem is that I can't add an "id=.." to licence, to be adequat with mpeg21 REL :-(</o:p></SPAN></FONT></P> <P class=MsoNormal><FONT face=Arial size=2><SPAN lang=EN-GB style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"><o:p> </o:p></SPAN></FONT><FONT face=Arial size=2><SPAN lang=EN-GB style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">I tried to use an Xpath transform but without success, can you please take a look to my DID and tell me if you have an idea for an other transform method to sign only what I want.<o:p></o:p></SPAN></FONT></P> <P class=MsoNormal><FONT face=Arial size=2><SPAN lang=EN-GB style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"><o:p> </o:p></SPAN></FONT><FONT face=Arial size=2><SPAN lang=EN-GB style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">All idea are welcome<o:p></o:p></SPAN></FONT></P> <P class=MsoNormal><FONT face=Arial size=2><SPAN lang=EN-GB style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"><o:p> </o:p></SPAN></FONT><FONT face=Arial size=2><SPAN lang=EN-GB style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">Thanks in Advance.<o:p></o:p></SPAN></FONT></P> <P class=MsoNormal><FONT face=Arial size=2><SPAN lang=EN-GB style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"><o:p> </o:p></SPAN></FONT><FONT face=Arial size=2><SPAN lang=EN-GB style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">Reda</SPAN></FONT></P> <P class=MsoNormal><FONT face=Arial size=2><SPAN lang=EN-GB style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"></SPAN></FONT> </P> <P class=MsoNormal><FONT face=Arial size=2><SPAN lang=EN-GB style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">PS: I used templateSign and VerifyCUI from the sample og the IBM toolkit</SPAN></FONT></P> <P class=MsoNormal><FONT face=Arial size=2><SPAN lang=EN-GB style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">java -cp .;xercesImpl.jar;xalan.jar;xss4j.jar;bcprov-jdk15-127.jar dsig.VerifyCUI output_TestDID.xml</SPAN></FONT></P> <P class=MsoNormal><FONT face=Arial size=2><SPAN lang=EN-GB style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">java -cp .;xalan.jar;xercesImpl.jar;xss4j.jar;dsig;bcprov-jdk15-127.jar dsig.TemplateSign -keystore Tiramisu.keystore author_1 tiramisu tiramisu TestDID.xml > output_TestDID.xml</SPAN></FONT></P></DIV></DIV></DIV><p> <hr size=1> <b><font color=#FF0000>Appel audio GRATUIT</font> partout dans le monde</b> avec le nouveau Yahoo! Messenger<br> <a href="http://us.rd.yahoo.com/messenger/mail_taglines/default/*http://fr.messenger.yahoo.com">Téléchargez le ici !</a> --0-97675657-1119435562=:98175-- --0-665631949-1119435562=:98175 Content-Type: text/xml; name="TestDID.xml" Content-Description: 4112833912-TestDID.xml Content-Disposition: inline; filename="TestDID.xml" <?xml version="1.0" encoding="UTF-8"?> <DIDL xmlns="urn:mpeg:mpeg21:2002:02-DIDL-NS" xmlns:dii="urn:mpeg:mpeg21:2002:01-DII-NS" xmlns:dia="urn:mpeg:mpeg21:2003:01-DIA-NS" xmlns:mpeg7="urn:mpeg:mpeg7:schema:2001" xmlns:dsig="http://www.w3.org/2000/09/xmldsig#" xmlns:enc="http://www.w3.org/2001/04/xmlenc#" xmlns:r="urn:mpeg:mpeg21:2003:01-REL-R-NS" xmlns:sx="urn:mpeg:mpeg21:2003:01-REL-SX-NS" xmlns:mx="urn:mpeg:mpeg21:2003:01-REL-MX-NS" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:enst="urn:enst:tiramisu:2004-12" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <Container> <Descriptor Id= "toTest"> <Statement mimeType="text/xml"> <r:license licenseId="sharing"> <r:grant> <r:keyHolder> <r:info> <dsig:KeyName>http://www.acme.com/LicenseServer.pub</dsig:KeyName> <dsig:KeyValue> <dsig:RSAKeyValue> <dsig:Modulus/> <dsig:Exponent/> </dsig:RSAKeyValue> </dsig:KeyValue> </r:info> </r:keyHolder> <r:issue/> <sx:feePerUse> <sx:rate> <sx:amount>1.00</sx:amount> </sx:rate> </sx:feePerUse> </r:grant> <r:issuer> <dsig:Signature> <dsig:SignedInfo> <dsig:CanonicalizationMethod Algorithm="http://www.w3.org/TR/2001/REC-xml-c14n-20010315"/> <dsig:SignatureMethod Algorithm="http://www.w3.org/2000/09/xmldsig#rsa-sha1"/> <dsig:Reference URI="#toTest"> <dsig:Transforms> <!--dsig:Transform Algorithm="http://www.w3.org/TR/1999/REC-xpath-19991116"> <XPath xmlns:r="urn:mpeg:mpeg21:2003:01-REL-R-NS">//r:license[@licenseId='sharing']</XPath> </dsig:Transform--> <dsig:Transform Algorithm="http://www.w3.org/2000/09/xmldsig#enveloped-signature"> </dsig:Transform> </dsig:Transforms> <dsig:DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1"/> <dsig:DigestValue> </dsig:DigestValue> </dsig:Reference> </dsig:SignedInfo> <dsig:SignatureValue> </dsig:SignatureValue> </dsig:Signature> <r:details> <r:timeOfIssue> </r:timeOfIssue> </r:details> </r:issuer> <r:otherInfo> <enc:EncryptedKey> <enc:ReferenceList> <enc:DataReference URI=""/> </enc:ReferenceList> <enc:EncryptionMethod Algorithm="http://www.w3.org/2001/04/xmlenc#rsa-oaep-mgf1p"> <dsig:DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1"/> </enc:EncryptionMethod> <dsig:KeyInfo> <dsig:KeyName>http://www.acme.com/LicenseServer.pub</dsig:KeyName> </dsig:KeyInfo> <enc:CipherData> <enc:CipherValue> </enc:CipherValue> </enc:CipherData> </enc:EncryptedKey> </r:otherInfo> </r:license> </Statement> </Descriptor> </Container> </DIDL> --0-665631949-1119435562=:98175--
Received on Wednesday, 22 June 2005 16:38:21 UTC