santuario-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jorge Martín Cuervo <>
Subject signature elements indent
Date Mon, 12 Feb 2007 11:00:20 GMT
Hi all, 

I want to create a signature inside an xml file, i use several
transforms to get a portion of the original xml with xpath, and to
canonize. I decided to don't attach the public keys.

<?xml version="1.0" encoding="UTF-8"?>
<hr:Candidate xmlns:df="" xmlns:hr=""
xmlns:xs="" xmlns:xsi="">
            <hr:IdValue name="id">1158138667963</hr:IdValue>
            <hr:IdValue name="version">0.9.0</hr:IdValue>
            <hr:IdValue name="model">0.9.0</hr:IdValue>
            <hr:IdValue name="host"></hr:IdValue>
    <HRSignature id="protean-xmldsig-01"><ds:Signature xmlns:ds="">
<ds:SignedInfo xmlns:ds="">
<ds:CanonicalizationMethod Algorithm=""
<ds:SignatureMethod Algorithm="" xmlns:ds=""/>
<ds:Reference URI="" xmlns:ds="">
<ds:Transforms xmlns:ds="">
<ds:Transform Algorithm="" xmlns:ds="">
<dsig-xpath:XPath Filter="intersect" xmlns:dsig-xpath="">/hr:Candidate/hr:CandidateRecordInfo</dsig-xpath:XPath>
<ds:Transform Algorithm=""
<ds:DigestMethod Algorithm="" xmlns:ds=""/>
<ds:DigestValue xmlns:ds="">ICBDC9GdWcp8S373I1jlKCilSbI=</ds:DigestValue>
<ds:SignatureValue xmlns:ds="">l0N6Ll3/tlSoBz26QdIHyWMA1D95xcPClBz8oy8y7Oj69QQxTVF9GA==</ds:SignatureValue>

It works pretty well, (the sign and the verification process) but, when
i indent the whole file, the Signature element content is indented too
and the validation process fails.

is there any way to canonice the Signature element? is this a common
problem? how can i solve this?

thank you!

pd: i'm new in this mailing list, and sorry if this issue was commented
Jorge Martin Cuervo
Analista Programador

Outsourcing Emarketplace
deFacto Powered by Standards

email <>
voz +34 985 129 820
voz +34 660 026 384

View raw message