[xmlsec] How to generate a manifest?

Li, Yunhong yunhong.li at intel.com
Wed Jun 9 12:05:17 PDT 2004


 

Hi, All:

 

I have a template as following and tried to generate a manifest. I tried
"xmlsec1 -sign -privkey-pem rsakey.pem -node-id MyManifest temp.xml". It
always signs the <Signature> node, NOT the <Manifest> node even if I
specified it in the command line.

What did I do wrong?

 

<?xml version="1.0" encoding="UTF-8">

<!DOCTYPE test [

<!ATTLIST Data id ID #IMPLIED>

<!ATTLIST Manifest id ID #IMPLIED>

<!ATTLIST Signature id ID #IMPLIED>

]>


<Root>

<Data Id="data1">

data1
</Data>

      <Data Id="data2">
            data2
      </Data>

 

            <Manifest Id="MyManifest">

                  <Reference URI="#data1"> . . . </Reference>

                  <Reference URI="#data2"> . . . </Reference>

            </Manifest>

 

            <Signature Id = "sig">

                  . . .

            <Reference URI="#MyManifest"> . . . </Reference>

                  . . .

            </Signature>

</Root>

 

Thanks.

--Yunhong

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.aleksey.com/pipermail/xmlsec/attachments/20040609/b1ff5167/attachment-0002.htm


More information about the xmlsec mailing list