[xmlsec] xml signing binary files

Aleksey Sanin aleksey at aleksey.com
Tue Apr 30 10:39:23 PDT 2019


Dynamic templates is just helper functions to create the XML. So you
can just add Reference w/o any transforms.

Aleksey

On 4/29/19 1:59 PM, Skip Carter wrote:
> 
> Now that I can sign binary data with a template, for completeness, how
> do I accomplish the same with a dynamic template ?
> 
> On Mon, 2019-04-29 at 08:07 +0000, Erwann Abalea wrote:
>>
>> If you want to sign a file in addition to your XML file, just add
>> this:
>> <dsig:Reference Id="document_0" URI="myfile.bin">
>>    <dsig:DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha2
>> 56"/>;
>>    <dsig:DigestValue></dsig:DigestValue>
>> </dsig:Reference>
>>
>> And sign the XML file the normal way (wih myfile.bin being present in
>> your current directory).
>>
>>
> 


More information about the xmlsec mailing list