<br><font size=2 face="sans-serif">Looks like my problem might be with
libxml2, not libxmlsec.</font>
<br>
<br><font size=2 face="sans-serif">I use xmlSaveFile to serialize a document
containing my signature, and it cuts off everything that's base64-encoded
when it encounters a space character.</font>
<br>
<br><font size=2 face="sans-serif">Instead of</font>
<br><font size=2 face="Courier New">&nbsp; &nbsp; &nbsp; &nbsp; &lt;P&gt;</font>
<br><font size=2 face="Courier New">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
/X9TgR11EilS30qcLuzk5/YRt1I870QAwx4/gLZRJmlFXUAiUftZPY1Y+r/F9bow9s</font>
<br><font size=2 face="Courier New">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
ubVWzXgTuAHTRv8mZgt2uZUKWkn5/oBHsQIsJPu6nX/rfGG/g7V+fGqKYVDwT7g/bT</font>
<br><font size=2 face="Courier New">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
xR7DAjVUE1oWkTL2dfOuK2HXKu/yIgMZndFIAcc=</font>
<br><font size=2 face="Courier New">&nbsp; &nbsp; &nbsp; &nbsp; &lt;/P&gt;</font>
<br>
<br><font size=2 face="sans-serif">it gives me</font>
<br><font size=2 face="sans-serif">&lt;P&gt;</font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; /X9TgR11EilS30qcLuzk5/YRt1I870QAwx4/gLZRJmlFXUAiUftZPY1Y+r/F9bow9s&lt;/P&gt;</font>
<br><font size=2 face="sans-serif"><br>
-- Regards,<br>
<br>
J. Bielski</font>
<br>
<br>
<br>
<br>
<table width=100%>
<tr valign=top>
<td>
<td><font size=1 face="sans-serif"><b>Aleksey Sanin &lt;aleksey@aleksey.com&gt;</b></font>
<p><font size=1 face="sans-serif">10/14/2003 02:34 PM</font>
<td><font size=1 face="Arial">&nbsp; &nbsp; &nbsp; &nbsp; </font>
<br><font size=1 face="sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; To:
&nbsp; &nbsp; &nbsp; &nbsp;Julianne Bielski/Raleigh/IBM@IBMUS</font>
<br><font size=1 face="sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; cc:
&nbsp; &nbsp; &nbsp; &nbsp;xmlsec@aleksey.com</font>
<br><font size=1 face="sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; Subject:
&nbsp; &nbsp; &nbsp; &nbsp;Re: [xmlsec] using SAX with xmlsec</font></table>
<br>
<br>
<br><font size=3>I don't know how to you build the &lt;dsig:Signature/&gt;
node thus I can only guess.<br>
And I would bet that you have some namespaces defined in the document<br>
before this node. Try to use exclusive C14N in &lt;dsig:CanonicalizationMethod/&gt;<br>
instead of the regular canonicalization. But I can promise you nothing.
xmlsec<br>
is not designed to work in this mode.<br>
<br>
Aleksey<br>
<br>
Julianne Bielski wrote:</font>
<br><font size=2 face="sans-serif"><br>
I have put two templates in the same doc, one a detached, one an enveloped.</font><font size=3>
</font><font size=2 face="sans-serif"><br>
I build each template dynamically as a small DOM tree since I'm using a
SAX parser for performance. I pass the individual Signature nodes in, as
well as the document containing the templates and my untrusted cert file
name.</font><font size=3> <br>
</font><font size=2 face="sans-serif"><br>
I cannot get the detached signature to verify unless the template is in
a stand-alone file with the signature node at the root <i>and </i>&nbsp;use
xmlSecFindNode to derive the node. In other words, the node I pass in does
not work, even if the Signature is the only thing in the file.</font><font size=3>
<br>
</font><font size=2 face="sans-serif"><br>
-- Regards</font><font size=3> <br>
</font><font size=2 face="sans-serif"><br>
J. Bielski</font><font size=3> <br>
<br>
</font>
<br>