[xmlsec] XML signature error

Aleksey Sanin aleksey at aleksey.com
Thu Jan 5 09:34:26 PST 2017


You have a wrong C14N identifier
(https://www.w3.org/TR/xmldsig-core/#sec-c14nAlg): remove the "#" at the
end.

Aleksey

On 1/5/17 3:45 AM, sred_94 at libero.it wrote:
> Dear Sirs,
> 
> I have tried to sign a XML file, but the process ended with these errors:
> 
> func=xmlSecTransformNodeRead:file=transforms.c:line=1571:obj=unknown:subj=xmlSecTransformIdListFindByHref:error=1:xmlsec
> library function
> failed:href=http://www.w3.org/TR/2001/REC-xml‐c14n‐20010315#
> func=xmlSecTransformCtxNodeRead:file=transforms.c:line=704:obj=unknown:subj=xmlSecTransformNodeRead:error=1:xmlsec
> library function failed:name=CanonicalizationMethod
> func=xmlSecDSigCtxProcessSignedInfoNode:file=xmldsig.c:line=722:obj=unknown:subj=xmlSecTransformCtxNodeRead:error=1:xmlsec
> library function failed:node=CanonicalizationMethod
> func=xmlSecDSigCtxProcessSignatureNode:file=xmldsig.c:line=568:obj=unknown:subj=xmlSecDSigCtxProcessSignedInfoNode:error=1:xmlsec
> library function failed: 
> func=xmlSecDSigCtxSign:file=xmldsig.c:line=323:obj=unknown:subj=xmlSecDSigCtxSignatureProcessNode:error=1:xmlsec
> library function failed: 
> Error: signature failed 
> Error: failed to sign file "completetosign.xml"
> 
> How can I solve this problem?
> 
> Thanking you in advance,
> 
> Simone Rossi
> 
> 
> _______________________________________________
> xmlsec mailing list
> xmlsec at aleksey.com
> http://www.aleksey.com/mailman/listinfo/xmlsec
> 


More information about the xmlsec mailing list