Multiple enveloped signatures

Hi,

during developing Czech XML based invoicing standard we crossed issue of
several signatures attached to one document and even after studying all
specifications related to XML DSig we are not sure what is the right
answer to our problem.

Initially we need to solve simple problem of attaching one signature and
thus many implementors used Enveloped Signature as it was easiest one to
incorporate into existing document.

However after some time there was demand for multiple signatures -- for
example invoice has to be approved by several people, so each person
attached his signature. Many implementations used enveloped signature
for this as well. So typical document looked like:

<Invoice>
  ... invoice content ...
  <dsig:Signature>1st signature</dsig:Signature>
  <dsig:Signature>2nd signature</dsig:Signature>
  <dsig:Signature>3rd signature</dsig:Signature>
</Invoice>

As all signatures were created as enveloped ones validation has always
been done from the end. After validating 3rd signature, the signature
was removed and 2nd signature was validated. Then 2nd signature was
removed and 1st signature was validated, etc.

However such approach doesn't allow to validate 1st (or 2nd) signature
alone without removing 2nd and 3rd signatures first as they are
considered a part of signed content (<Reference URI=""> is used for
enveloped signature).

So my questions (to which I haven't found answer in any REC, WD or BP
document) are:

-- is it correct to attach multiple enveloped signatures to one document?

-- is there somewhere definition of process used for validation of
document with several enveloped signatures?

-- if it's incorrect to attach multiple enveloped signatures to one
document where this is defined?

Thanks for insights in advance.

     Jirka


-- 
------------------------------------------------------------------
  Jirka Kosek      e-mail: jirka@kosek.cz      http://xmlguru.cz
------------------------------------------------------------------
       Professional XML consulting and training services
  DocBook customization, custom XSLT/XSL-FO document processing
------------------------------------------------------------------
 OASIS DocBook TC member, W3C Invited Expert, ISO JTC1/SC34 rep.
------------------------------------------------------------------
    Bringing you XML Prague conference    http://xmlprague.cz
------------------------------------------------------------------

Received on Monday, 17 December 2012 15:04:59 UTC