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

_______________________________________________
xmlsec mailing list
[EMAIL PROTECTED]
http://www.aleksey.com/mailman/listinfo/xmlsec

Reply via email to