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

Section 3.2.

Aleksey

Alexandre Kalendarev wrote:
Hello Aleksey,

I have some problem with signing by xmlsec1. I sign line 4 from attached xml.

If I have tag without namespace, the signing is OK :
  <Action Id="action">i-OTM/SubscriberInquiryForPrePaid</Action>
command line is:
--sign --trusted-pem Base64Certif.cer  --hmackey hmac.key --id-attr:Id Action 
template2.xml

but I have error, if I added namespase:
  <wsa:Action Id="action">i-OTM/SubscriberInquiryForPrePaid</wsa:Action>
 command line is:
--sign --trusted-pem Base64Certif.cer  --hmackey hmac.key --id-attr:Id 
wsa:Action template2.xml

errors:
$ xmlsec1 --sign --trusted-pem Base64Certif.cer --hmackey hmac.key --id-attr:Id wsa:Action template2.xml func=xmlSecXPathDataExecute:file=xpath.c:line=273:obj=unknown:subj=xmlXPtrEval:error=5:libxml2 library function failed:expr=xpointer(id('action')) func=xmlSecXPathDataListExecute:file=xpath.c:line=356:obj=unknown:subj=xmlSecXPathDataExecute:error=1:xmlsec library function failed: func=xmlSecTransformXPathExecute:file=xpath.c:line=466:obj=xpointer:subj=xmlSecXPathDataExecute:error=1:xmlsec library function failed: func=xmlSecTransformDefaultPushXml:file=transforms.c:line=2371:obj=xpointer:subj=xmlSecTransformExecute:error=1:xmlsec library function failed: func=xmlSecTransformCtxXmlExecute:file=transforms.c:line=1207:obj=unknown:subj=xmlSecTransformPushXml:error=1:xmlsec library function failed:transform=xpointer func=xmlSecTransformCtxExecute:file=transforms.c:line=1267:obj=unknown:subj=xmlSecTransformCtxXmlExecute:error=1:xmlsec library function failed: func=xmlSecDSigReferenceCtxProcessNode:file=xmldsig.c:line=1568:obj=unknown:subj=xmlSecTransformCtxExecute:error=1:xmlsec library function failed: func=xmlSecDSigCtxProcessSignedInfoNode:file=xmldsig.c:line=804:obj=unknown:subj=xmlSecDSigReferenceCtxProcessNode:error=1:xmlsec library function failed:node=Reference func=xmlSecDSigCtxProcessSignatureNode:file=xmldsig.c:line=547:obj=unknown:subj=xmlSecDSigCtxProcessSignedInfoNode:error=1:xmlsec library function failed: func=xmlSecDSigCtxSign:file=xmldsig.c:line=303:obj=unknown:subj=xmlSecDSigCtxSigantureProcessNode:error=1:xmlsec library function failed: Error: signature failed Error: failed to sign file "template2.xml"


Can I sign namespace tag ?

How I can  next tag (The tag have namespace and tag property  have namespace)?

  <wsa:Action wsu:Id="action">i-OTM/SubscriberInquiryForPrePaid</wsa:Action>



Thanks.


Alexandre



------------------------------------------------------------------------

_______________________________________________
xmlsec mailing list
[email protected]
http://www.aleksey.com/mailman/listinfo/xmlsec
_______________________________________________
xmlsec mailing list
[email protected]
http://www.aleksey.com/mailman/listinfo/xmlsec

Reply via email to