|
From: Patrick Y. <kc...@ce...> - 2003-05-30 04:57:46
|
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <meta http-equiv="Content-Type" content="text/html;charset=ISO-8859-1"> <title></title> </head> <body> But the SOAP Body of a message w/ attachment will have Manifest and References point to the attachment. Those elements will be absent in a message without attachment.<br> <br> Does this imply the DigestValue will be different?<br> <br> Regards, -Patrick<br> <br> <br> <br> Mayne, Peter wrote:<br> <blockquote type="cite" cite="mid...@s-..."> <meta http-equiv="Content-Type" content="text/html; "> <meta name="Generator" content="MS Exchange Server version 5.5.2654.45"> <title>RE: [ebxmlms-develop] Digital signatures</title> <p><font size="2">An XML signature has a Reference containing a DigestValue for each message part (envelope + payloads), and a single SignatureValue.</font></p> <p><font size="2">When I tried signing a document with and without an attachment, the DigestValue for the SOAP envelope remained unchanged.</font></p> <p><font size="2">Are you sure we're referring to the same thing?</font> </p> <p><font size="2">PJDM</font> <br> <font size="2">--</font> <br> <font size="2">Peter Mayne</font> <br> <font size="2">Technology Consultant</font> <br> <font size="2">Spherion Technology Solutions</font> <br> <font size="2">Level 1, 243 Northbourne Avenue, Lyneham, ACT, 2602</font> <br> <font size="2">T: 61 2 62689727 F: 61 2 62689777 </font> <br> <font size="2">-----Original Message-----</font> <br> <font size="2">From: Gait Boxman [<a href="mailto:gai...@ti...">mailto:gai...@ti...</a>]</font> <br> <font size="2">Sent: Wednesday, 28 May 2003 4:03 PM</font> <br> <font size="2">To: <a class="moz-txt-link-abbreviated" href="mailto:ebx...@li...">ebx...@li...</a></font> <br> <font size="2">Subject: Re: [ebxmlms-develop] Digital signatures</font> </p> <br> <p><font size="2">It is, the digest is based on the transformed envelope plus all the payloads, that's why you must do addDocument before computing the signature.</font></p> <p><font size="2">----- Original Message ----- </font> <br> <font size="2">From: Mayne, Peter </font> <br> <font size="2">To: '<a class="moz-txt-link-abbreviated" href="mailto:ebx...@li...">ebx...@li...</a>' </font> <br> <font size="2">Sent: Wednesday, May 28, 2003 1:03 AM</font> <br> <font size="2">Subject: RE: [ebxmlms-develop] Digital signatures</font> </p> <br> <p><font size="2">I know, but the DigestValue for the SOAP envelope isn't affected by the presence of payloads (is it?). If I can't get my SOAP envelope's DigestValue to match the one that Hermes produces for the same envelope, then there's not much point worrying about the final signature value yet.</font></p> <p><font size="2">PJDM </font> <br> <font size="2">-- </font> <br> <font size="2">Peter Mayne </font> <br> <font size="2">Technology Consultant </font> <br> <font size="2">Spherion Technology Solutions </font> <br> <font size="2">Level 1, 243 Northbourne Avenue, Lyneham, ACT, 2602 </font> <br> <font size="2">T: 61 2 62689727 F: 61 2 62689777 </font> <br> <font size="2">-----Original Message----- </font> <br> <font size="2">From: Gait Boxman [<a href="mailto:gai...@ti...">mailto:gai...@ti...</a>]</font> <br> <font size="2">Sent: Tuesday, 27 May 2003 5:43 PM </font> <br> <font size="2">To: <a class="moz-txt-link-abbreviated" href="mailto:ebx...@li...">ebx...@li...</a> </font> <br> <font size="2">Subject: Re: [ebxmlms-develop] Digital signatures </font> </p> <br> <p><font size="2">Hi Peter, </font> <br> <font size="2">you'll need to add the payloads as well, they get computed into the digest. Either send yourself a signed message w/o payloads, or add the payloads in the test routine with addDocument.</font></p> <p><font size="2">--Gait. </font> <br> <font size="2">----- Original Message ----- </font> <br> <font size="2">From: Mayne, Peter </font> <br> <font size="2">To: '<a class="moz-txt-link-abbreviated" href="mailto:ebx...@li...">ebx...@li...</a>' </font> <br> <font size="2">Sent: Tuesday, May 27, 2003 8:34 AM </font> <br> <font size="2">Subject: RE: [ebxmlms-develop] Digital signatures </font> </p> <br> <p><font size="2">I've written (borrowing heavily from one of the samples) the attached rather crude program that takes an ebXML envelope and signs it. For input, I'm trapping a signed message from Hermes, editing out the headers, mime boundaries, attachments, etc, removing the signature, and using the remaining envelope.</font></p> <p><font size="2">I've compared it to ApacheXMLDSigner.sign() and they look similar as far as I can tell. </font> <br> <font size="2">Unfortunately, the DigestValue I get is not the same as the one that Hermes generates. (I'm not worried about attachments or signature values yet.) Would someone care to have a quick look and spot the differences?</font></p> <p><font size="2">I'm not sure where XSLT comes in to it. </font> <br> <font size="2">Thanks. </font> <br> <font size="2">PJDM </font> <br> <font size="2">-- </font> <br> <font size="2">Peter Mayne </font> <br> <font size="2">Technology Consultant </font> <br> <font size="2">Spherion Technology Solutions </font> <br> <font size="2">Level 1, 243 Northbourne Avenue, Lyneham, ACT, 2602 </font> <br> <font size="2">T: 61 2 62689727 F: 61 2 62689777 </font> <br> <font size="2"> </font> <br> <font size="2">The information contained in this email and any attachments to it: </font> <br> <font size="2">(a) may be confidential and if you are not the intended recipient, any interference with, </font> <br> <font size="2">use, disclosure or copying of this material is unauthorised and prohibited; and </font> <br> <font size="2">(b) may contain personal information of the recipient and/or the sender as defined </font> <br> <font size="2">under the Privacy Act 1988 (Cth). Consent is hereby given by the recipient(s) to </font> <br> <font size="2">collect, hold and use such information and any personal information contained in a </font> <br> <font size="2">response to this email, for any reasonable purpose in the ordinary course of </font> <br> <font size="2">Spherion's </font> <br> <font size="2">business, including forwarding this email internally or disclosing it to a third party. All </font> <br> <font size="2">personal information collected by Spherion will be handled in accordance with </font> <br> <font size="2">Spherion's Privacy Policy. If you have received this email in error, please notify the </font> <br> <font size="2">sender and delete it. </font> <br> <font size="2">(c) you agree not to employ or arrange employment for any candidate(s) supplied in </font> <br> <font size="2">this email and any attachments without first entering into a contractual agreement with </font> <br> <font size="2">Spherion. You further agree not to divulge any information contained in this document </font> <br> <font size="2">to any person(s) or entities without the express permission of Spherion. </font> </p> <font size="3" color="BLUE"> <pre>The information contained in this email and any attachments to it: (a) may be confidential and if you are not the intended recipient, any interference with, use, disclosure or copying of this material is unauthorised and prohibited; and (b) may contain personal information of the recipient and/or the sender as defined under the Privacy Act 1988 (Cth). Consent is hereby given by the recipient(s) to collect, hold and use such information and any personal information contained in a response to this email, for any reasonable purpose in the ordinary course of Spherion's business, including forwarding this email internally or disclosing it to a third party. All personal information collected by Spherion will be handled in accordance with Spherion's Privacy Policy. If you have received this email in error, please notify the sender and delete it. (c) you agree not to employ or arrange employment for any candidate(s) supplied in this email and any attachments without first entering into a contractual agreement with Spherion. You further agree not to divulge any information contained in this document to any person(s) or entities without the express permission of Spherion. </pre> </font> </blockquote> </body> </html> |