[xmlsec] Reference URI value failing? [SEC=UNCLASSIFIED]

Aleksey Sanin aleksey at aleksey.com
Wed Feb 23 19:33:41 PST 2011


http://www.aleksey.com/xmlsec/faq.html

Section 3.2 if I remember correctly

Aleksey

On 2/23/11 6:37 PM, Cartland, Bruce wrote:
>
> Apologies if I'm missing something basic.
>
> When I leave this blank (<Reference URI="">, a signature value and 
> digest get generated (for the entire envelope?).
>
> However, I get this error if I put in a relative reference to another 
> node (this works in the Axis2c framework).
>
> func=xmlSecXPathDataExecute:file=..\src\xpath.c:line=273:obj=unknown:subj=xmlXPtrEval:error=5:libxml2 
> library function failed:expr=xpointer(id('fred'))
>
>
> Partial xml is ..
> <o:Security s:mustUnderstand="1" 
> xmlns:o="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd">
>
> <u:Timestamp u:Id="fred">
> <u:Created>2011-02-07T03:01:36.046Z</u:Created>
> <u:Expires>2011-02-07T03:06:36.046Z</u:Expires>
> </u:Timestamp>
> <Signature xmlns="http://www.w3.org/2000/09/xmldsig#">
> <SignedInfo>
> <CanonicalizationMethod 
> Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/>
> <SignatureMethod Algorithm="http://www.w3.org/2000/09/xmldsig#rsa-sha1"/>
> <Reference URI="#fred">
> <Transforms>
> <Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/>
>
> </Transforms>
> <DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1"/>
> <DigestValue/>
> </Reference>
>
>
> thanks
> Bruce
>
> **********************************************************************
> IMPORTANT
> 	The information transmitted is for the use of the intended
> recipient only and may contain confidential and/or legally
> privileged material. Any review, re-transmission, disclosure,
> dissemination or other use of, or taking of any action in
> reliance upon, this information by persons or entities other
> than the intended recipient is prohibited and may result in
> severe penalties. If you have received this e-mail in error
> please notify the Privacy Hotline of the Australian Taxation
> Office, telephone 13 2869 and delete all copies of this
> transmission together with any attachments.
> **********************************************************************
>
>
> _______________________________________________
> xmlsec mailing list
> xmlsec at aleksey.com
> http://www.aleksey.com/mailman/listinfo/xmlsec
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.aleksey.com/pipermail/xmlsec/attachments/20110223/420c5ede/attachment-0001.html>


More information about the xmlsec mailing list