<html xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<meta name=Generator content="Microsoft Word 11 (filtered medium)">
<style>
<!--
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman";}
a:link, span.MsoHyperlink
        {color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {color:purple;
        text-decoration:underline;}
code
        {font-family:"Courier New";}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:Arial;
        color:windowtext;}
@page Section1
        {size:8.5in 11.0in;
        margin:1.0in 1.25in 1.0in 1.25in;}
div.Section1
        {page:Section1;}
-->
</style>
</head>
<body lang=EN-US link=blue vlink=purple>
<div class=Section1>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>Hi, All:<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>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.<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>What did I do wrong?<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'><o:p> </o:p></span></font></p>
<p class=MsoNormal style='margin-left:.5in'><code><font size=2
face="Courier New"><span style='font-size:10.0pt'><?xml
version="1.0" encoding="UTF-8"><o:p></o:p></span></font></code></p>
<p class=MsoNormal style='margin-left:.5in'><code><font size=2
face="Courier New"><span style='font-size:10.0pt'><!DOCTYPE test [<o:p></o:p></span></font></code></p>
<p class=MsoNormal style='margin-left:.5in'><code><font size=2
face="Courier New"><span style='font-size:10.0pt'><!ATTLIST Data id ID
#IMPLIED><o:p></o:p></span></font></code></p>
<p class=MsoNormal style='margin-left:.5in'><code><font size=2
face="Courier New"><span style='font-size:10.0pt'><!ATTLIST Manifest id ID
#IMPLIED><o:p></o:p></span></font></code></p>
<p class=MsoNormal style='margin-left:.5in'><code><font size=2
face="Courier New"><span style='font-size:10.0pt'><!ATTLIST Signature id ID
#IMPLIED><o:p></o:p></span></font></code></p>
<p class=MsoNormal style='margin-left:.5in'><code><font size=2
face="Courier New"><span style='font-size:10.0pt'>]><o:p></o:p></span></font></code></p>
<p class=MsoNormal style='margin-left:.5in'><font size=2 face="Courier New"><span
style='font-size:10.0pt;font-family:"Courier New"'><br>
<code><font face="Courier New"><Root></font></code><o:p></o:p></span></font></p>
<p class=MsoNormal style='margin-left:.5in;text-indent:.5in'><code><font
size=2 face="Courier New"><span style='font-size:10.0pt'><Data Id="data1"><o:p></o:p></span></font></code></p>
<p class=MsoNormal style='margin-left:1.0in;text-indent:.5in'><code><font
size=2 face="Courier New"><span style='font-size:10.0pt'>data1</span></font></code><font
size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'><br>
<code><font face="Courier New"></Data><o:p></o:p></font></code></span></font></p>
<p class=MsoNormal style='margin-left:.5in'><code><font size=2
face="Courier New"><span style='font-size:10.0pt'> <Data Id="data2"></span></font></code><font
size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'><br>
<code><font face="Courier New"> data2</font></code><br>
<code><font face="Courier New"> </Data><o:p></o:p></font></code></span></font></p>
<p class=MsoNormal><code><font size=2 face="Courier New"><span
style='font-size:10.0pt'><o:p> </o:p></span></font></code></p>
<p class=MsoNormal><code><font size=2 face="Courier New"><span
style='font-size:10.0pt'> <Manifest Id=”MyManifest”><o:p></o:p></span></font></code></p>
<p class=MsoNormal><code><font size=2 face="Courier New"><span
style='font-size:10.0pt'> <Reference URI=”#data1”>
. . . </Reference><o:p></o:p></span></font></code></p>
<p class=MsoNormal><code><font size=2 face="Courier New"><span
style='font-size:10.0pt'> <Reference URI=”#data2”>
. . . </Reference><o:p></o:p></span></font></code></p>
<p class=MsoNormal><code><font size=2 face="Courier New"><span
style='font-size:10.0pt'> </Manifest><o:p></o:p></span></font></code></p>
<p class=MsoNormal><code><font size=2 face="Courier New"><span
style='font-size:10.0pt'><o:p> </o:p></span></font></code></p>
<p class=MsoNormal><code><font size=2 face="Courier New"><span
style='font-size:10.0pt'> <Signature
Id = “sig”><o:p></o:p></span></font></code></p>
<p class=MsoNormal><code><font size=2 face="Courier New"><span
style='font-size:10.0pt'> . . .<o:p></o:p></span></font></code></p>
<p class=MsoNormal style='text-indent:.5in'><code><font size=2
face="Courier New"><span style='font-size:10.0pt'> <Reference
URI=”#MyManifest”> . . . </Reference><o:p></o:p></span></font></code></p>
<p class=MsoNormal><code><font size=2 face="Courier New"><span
style='font-size:10.0pt'> . . .<o:p></o:p></span></font></code></p>
<p class=MsoNormal><code><font size=2 face="Courier New"><span
style='font-size:10.0pt'> </Signature><o:p></o:p></span></font></code></p>
<p class=MsoNormal style='text-indent:.5in'><code><font size=2
face="Courier New"><span style='font-size:10.0pt'></Root><o:p></o:p></span></font></code></p>
<p class=MsoNormal><code><font size=2 face="Courier New"><span
style='font-size:10.0pt'><o:p> </o:p></span></font></code></p>
<p class=MsoNormal><code><font size=2 face="Courier New"><span
style='font-size:10.0pt'>Thanks.<o:p></o:p></span></font></code></p>
<p class=MsoNormal><code><font size=2 face="Courier New"><span
style='font-size:10.0pt'>--Yunhong</span></font></code><font size=2
face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'><o:p></o:p></span></font></p>
</div>
</body>
</html>