[xmlsec] singning an template
Aleksey Sanin
aleksey at aleksey.com
Tue Aug 17 08:01:12 PDT 2010
<dsig:Transform
Algorithm="http://www.w3.org/2000/09/xmldsig#enveloped-signature"
/>
<dsig:Transform
Algorithm="http://www.w3.org/2002/06/xmldsig-filter2">
<dsig:Transform
Algorithm="http://www.w3.org/TR/2001/REC-xml-c14n-20010315" />
<dsig-xpath:XPath Filter="union"> /</dsig-xpath:XPath>
</dsig:Transform>
</dsig:Transforms>
Aleksey
On 8/17/2010 7:53 AM, luiz at xharbour.com.br wrote:
> Hi Alex
>
> Thanks for fast response
>
> I filled this two tags with values as also dsig:DigestMethod Algorithm tag
> and the error now is
>
> func=xmlSecTransformXPath2NodeRead:file=..\src\xpath.c:line=758:obj=xpath2:subj=Transform:error=27:unexpected
> node:
> func=xmlSecTransformNodeRead:file=..\src\transforms.c:line=1571:obj=unknown:subj=id->readNode:error=1:xmlsec
> library function failed:transform=xpath2
> func=xmlSecTransformCtxNodesListRead:file=..\src\transforms.c:line=733:obj=unknown:subj=xmlSecTransformNodeRead:error=1:xmlsec
> library function failed:node=Transform
> func=xmlSecDSigReferenceCtxProcessNode:file=..\src\xmldsig.c:line=1454:obj=unknown:subj=xmlSecTransformCtxNodesListRead:error=1:xmlsec
> library function failed:node=Transforms
> func=xmlSecDSigCtxProcessSignedInfoNode:file=..\src\xmldsig.c:line=804:obj=unknown:subj=xmlSecDSigReferenceCtxProcessNode:error=1:xmlsec
> library function failed:node=Reference
> func=xmlSecDSigCtxProcessSignatureNode:file=..\src\xmldsig.c:line=547:obj=unknown:subj=xmlSecDSigCtxProcessSignedInfoNode:error=1:xmlsec
> library function failed:
> func=xmlSecDSigCtxSign:file=..\src\xmldsig.c:line=303:obj=unknown:subj=xmlSecDSigCtxSigantureProcessNode:error=1:xmlsec
> library function failed:
>
>
> how should be the transform section
>
> <dsig:Transform Algorithm="http://www.w3.org/2002/06/xmldsig-filter2">
> <dsig-xpath:XPath Filter="intersect"> //Lote</dsig-xpath:XPath>
> <dsig-xpath:XPath Filter="union"> //RPS</dsig-xpath:XPath>
> </dsig:Transform>
>
> or i need to add all tags inside<lote></lote> as union?
>
> Regards
> Luiz
>
>> This is the problem, I believe the error is pretty clear about this
>>
>> <dsig:CanonicalizationMethod Algorithm="" />
>> <dsig:SignatureMethod Algorithm="" />
>>
>>
>> func=xmlSecTransformNodeRead:file=..\src\transforms.c:line=1533:obj=unknown:subj=xmlSecTransformIdListFindByHref:error=1:xmlsec
>> library function failed:href=
>> func=xmlSecTransformCtxNodeRead:file=..\src\transforms.c:line=684:obj=unknown:subj=xmlSecTransformNodeRead:error=1:xmlsec
>> library function failed:name=CanonicalizationMethod
>>
>>
>> Aleksey
>>
>
>
More information about the xmlsec
mailing list