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

Cartland, Bruce Bruce.Cartland at ato.gov.au
Wed Feb 23 18:37:39 PST 2011


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:sub
j=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-wssecur
ity-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.
**********************************************************************
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.aleksey.com/pipermail/xmlsec/attachments/20110224/28453f13/attachment.html>


More information about the xmlsec mailing list