[xmlsec] Error signing the following xml document
yeshwanth.c
yeshwanth.c at psidata.com
Fri Dec 1 00:07:31 PST 2006
Hi,
While signing the following example xml document using the xmlsec libraries,
<?xml version="1.0" encoding="UTF-8" ?>
<file:///D:\yeshwanth\Yeshwanth\DLL\LicenseManager\LicenseGenerator\write.xm
l##> - <!--
XML Security Library example: Simple signature template file for sign1
example.
-->
<file:///D:\yeshwanth\Yeshwanth\DLL\LicenseManager\LicenseGenerator\write.xm
l##> - <Envelope xmlns="urn:envelope">
<Data>Hello, World!</Data>
<file:///D:\yeshwanth\Yeshwanth\DLL\LicenseManager\LicenseGenerator\write.xm
l##> - <Signature xmlns="http://www.w3.org/2000/09/xmldsig#">
<file:///D:\yeshwanth\Yeshwanth\DLL\LicenseManager\LicenseGenerator\write.xm
l##> - <SignedInfo>
<CanonicalizationMethod
Algorithm="http://www.w3.org/TR/2001/REC-xml-c14n-20010315" />
<SignatureMethod Algorithm="http://www.w3.org/2000/09/xmldsig#rsa-sha1" />
<file:///D:\yeshwanth\Yeshwanth\DLL\LicenseManager\LicenseGenerator\write.xm
l##> - <Reference URI="">
<file:///D:\yeshwanth\Yeshwanth\DLL\LicenseManager\LicenseGenerator\write.xm
l##> - <Transforms>
<Transform
Algorithm="http://www.w3.org/2000/09/xmldsig#enveloped-signature" />
</Transforms>
<DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1" />
<DigestValue />
</Reference>
</SignedInfo>
<SignatureValue />
<file:///D:\yeshwanth\Yeshwanth\DLL\LicenseManager\LicenseGenerator\write.xm
l##> - <KeyInfo>
<KeyName />
</KeyInfo>
</Signature>
</Envelope>
I get the following error: -
func=xmlSecDSigCtxProcessSignatureNode:
file=..\src\xmldsig.c:
line=465:
obj=unknown:
subj=dsigCtx->c14nMethod == NULL:
error=100:
assertion:
func=xmlSecDSigCtxSign:
file=..\src\xmldsig.c:
line=303:
obj=unknown:
subj=xmlSecDSigCtxSigantureProcessNode:
error=1:
xmlsec library function failed:
Error: signature failed
Please could somebody help me out with this?
Thanks in advance,
Yesh.
Disclaimer: The information contained in this communication is intended solely for the individual or entity to which it is addressed. It may contain confidential and/or legally privileged information. Any review, retransmission, dissemination or other use of, or taking any action based on the contents of this information by persons or entities other than the intended recipient is strictly prohibited and may be unlawful. If you have received this communication in error, please notify us immediately by responding to this email and then delete it from your system. Aditya Birla Group Companies attempt to sweep e-mails and attachments for viruses. We do not guarantee that either is virus-free and we accept no liability for any damage sustained as a result of viruses.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.aleksey.com/pipermail/xmlsec/attachments/20061201/5cb521e5/attachment-0002.htm
More information about the xmlsec
mailing list