[xmlsec] XmlDSig Enveloping another xml

Alexwell Sandro alexwellll at gmail.com
Fri Jun 7 16:18:02 PDT 2013


I do not know if this is the list for this question.

I am try to learn about enveloping signature.

If I sign another xml file, what can happen?
I cannot find examples.

*For this file:*

<?xml version="1.0" encoding="ISO-8859-1"?>
<newdoc>
  <content>hi</content>
</newdoc>

*First case "using xmlAddChild":*
...
*<ds:Object Id="obj-1236">*<newdoc>
  <content>hi</content>
</newdoc>*</ds:Object>*
*</ds:Signature>*

- The enconding declaration disappears...
- Possible namespace conflit (without prefix)

*Second case "using xmlNodeSetContent":*
...
*<ds:Object Id="obj-1236">**<?xml version="1.0"
encoding="ISO-8859-1"?>&#xD;*
*<newdoc>&#xD;*
*  <content>hi</content>&#xD;*
*</newdoc>**</ds:Object>*
*</ds:Signature>*

Exists another way? What pros and cons?

Can you recommend Articles.

Thanks,
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.aleksey.com/pipermail/xmlsec/attachments/20130607/c2890071/attachment.html>


More information about the xmlsec mailing list