<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"> <P></font>
<br><font size=2 face="Courier New">
/X9TgR11EilS30qcLuzk5/YRt1I870QAwx4/gLZRJmlFXUAiUftZPY1Y+r/F9bow9s</font>
<br><font size=2 face="Courier New">
ubVWzXgTuAHTRv8mZgt2uZUKWkn5/oBHsQIsJPu6nX/rfGG/g7V+fGqKYVDwT7g/bT</font>
<br><font size=2 face="Courier New">
xR7DAjVUE1oWkTL2dfOuK2HXKu/yIgMZndFIAcc=</font>
<br><font size=2 face="Courier New"> </P></font>
<br>
<br><font size=2 face="sans-serif">it gives me</font>
<br><font size=2 face="sans-serif"><P></font>
<br><font size=2 face="sans-serif"> /X9TgR11EilS30qcLuzk5/YRt1I870QAwx4/gLZRJmlFXUAiUftZPY1Y+r/F9bow9s</P></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 <aleksey@aleksey.com></b></font>
<p><font size=1 face="sans-serif">10/14/2003 02:34 PM</font>
<td><font size=1 face="Arial"> </font>
<br><font size=1 face="sans-serif"> To:
Julianne Bielski/Raleigh/IBM@IBMUS</font>
<br><font size=1 face="sans-serif"> cc:
xmlsec@aleksey.com</font>
<br><font size=1 face="sans-serif"> Subject:
Re: [xmlsec] using SAX with xmlsec</font></table>
<br>
<br>
<br><font size=3>I don't know how to you build the <dsig:Signature/>
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 <dsig:CanonicalizationMethod/><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> 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>