[xmlsec] xmlsec having problem finding element with Id=
Aleksey Sanin
aleksey at aleksey.com
Sat Nov 27 12:43:42 PST 2010
http://www.aleksey.com/xmlsec/faq.html
On 11/27/10 10:44 AM, G. Ken Holman wrote:
> Hi folks!
>
> Today I'm working on countersignatures, and I'm having a problem with
> xmlsec not finding an element with Id= that is cited in the URI= of a
> <ds:Reference>:
>
> func=xmlSecXPathDataExecute:file=..\src\xpath.c:line=273:obj=unknown:subj=xmlXPtrEval:error=5:libxml2
> library function failed:expr=xpointer(id('addedSigVal'))
> func=xmlSecXPathDataListExecute:file=..\src\xpath.c:line=356:obj=unknown:subj=xmlSecXPathDataExecute:error=1:xmlsec
> library function failed:
> func=xmlSecTransformXPathExecute:file=..\src\xpath.c:line=466:obj=xpointer:subj=xmlSecXPathDataExecute:error=1:xmlsec
> library function failed:
> func=xmlSecTransformDefaultPushXml:file=..\src\transforms.c:line=2395:obj=xpointer:subj=xmlSecTransformExecute:error=1:xmlsec
> library function failed:
> func=xmlSecTransformCtxXmlExecute:file=..\src\transforms.c:line=1226:obj=unknown:subj=xmlSecTransformPushXml:error=1:xmlsec
> library function failed:transform=xpointer
> func=xmlSecTransformCtxExecute:file=..\src\transforms.c:line=1286:obj=unknown:subj=xmlSecTransformCtxXmlExecute:error=1:xmlsec
> library function failed:
> func=xmlSecDSigReferenceCtxProcessNode:file=..\src\xmldsig.c:line=1571:obj=unknown:subj=xmlSecTransformCtxExecute:error=1:xmlsec
> library function failed:
> 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:
> Error: signature failed
> Error: failed to sign file "extSigned2.xml.raw"
>
>
> The extSigned2.xml.raw file is found in the attached ZIP file, named
> ".zzz" to get past mail filters.
>
> That file was successfully signed with a <ds:Signature> that has a
> <ds:SignatureValue Id="addedSigVal"> signature value.
>
> To again sign the document and this time also countersign that first
> signature, I'm adding a second <ds:Signature> that has two
> <ds:Reference> elements: the first one points to the document using
> URI="", and the second one points to the signature value of the first
> signature using URI="#addedSigVal".
>
> The first line of the error message above indicates that the element
> with the id "addedSigVal" cannot be found.
>
> I get the same message if I try to point to the first <ds:Signature>
> using URI="#addedSig".
>
> Is this enough information to determine if the software is wrong or if
> I'm asking too much?
>
> Thanks!
>
> . . . . . . . . . Ken
>
> --
> Contact us for world-wide XML consulting & instructor-led training
> Crane Softwrights Ltd. http://www.CraneSoftwrights.com/z/
> G. Ken Holman mailto:gkholman at CraneSoftwrights.com
> Legal business disclaimers: http://www.CraneSoftwrights.com/legal
>
>
>
> _______________________________________________
> xmlsec mailing list
> xmlsec at aleksey.com
> http://www.aleksey.com/mailman/listinfo/xmlsec
More information about the xmlsec
mailing list