Hi,

I suffer a error when I sign a detached xml signature. The xpath can not find the correct node. Why?

I use the following signature template,

<?xml version="1.0" encoding="UTF-8"?>

<Precode>
<Envelope xmlns="urn:envelope" Id="target">
<Data>
Hello, World!
</Data>
</Envelope>
<Signature xmlns="http://www.w3.org/2000/09/xmldsig#";>
<SignedInfo>
<CanonicalizationMethod Algorithm="http://www.w3.org/TR/2001/REC-xml-c14n-20010315"; />
<SignatureMethod Algorithm="http://www.w3.org/2000/09/xmldsig#rsa-sha1"; />
<Reference URI="#target">
<DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1"; />
<DigestValue></DigestValue>
</Reference>
</SignedInfo>
<SignatureValue/>
<KeyInfo>
<KeyName>rsakey.pem</KeyName>
</KeyInfo>
</Signature>
</Precode>


The error message is:
func=:file=..\src\io.c:line=423:obj=input-uri:subj=opencallback:error=7:io function failed:uri=xpointer(/precode/Encelope);errno=2


Thanks in advance!

Andrew

_______________________________________________
xmlsec mailing list
[EMAIL PROTECTED]
http://www.aleksey.com/mailman/listinfo/xmlsec

Reply via email to