Re: Problem signing xml
Balamurali Pandranki <[email protected]> Mon, 16 Oct 2017 00:27:27 +0000
| Newsgroups | gmane.text.xml.xmlsec |
|---|---|
| Message-ID | <PN1PR0101MB1488434442D440BD6CAC097AA34F0@PN1PR0101MB1488.INDPRD01.PROD.OUTLOOK.COM> |
--===============0664272043== Content-Language: en-US Content-Type: multipart/alternative; boundary="_000_PN1PR0101MB1488434442D440BD6CAC097AA34F0PN1PR0101MB1488_" --_000_PN1PR0101MB1488434442D440BD6CAC097AA34F0PN1PR0101MB1488_ Content-Type: text/plain; charset="Windows-1252" Content-Transfer-Encoding: quoted-printable Thank you, Solved it. Best, Balamurali Pandranki, +91-990-864-0059, P.S I am mobile. ________________________________ From: Aleksey Sanin <[email protected]> Sent: Sunday, October 15, 2017 2:57:23 AM To: Balamurali Pandranki; [email protected] Subject: Re: [xmlsec] Problem signing xml You have a problem in the SignatureNode definition as indicated by the error message. Aleksey On 10/14/17 6:02 AM, Balamurali Pandranki wrote: > > Command : > > xmlsec1 --sign --pkcs12 Staging_Signature_PrivateKey.p12 --pwd public > --output /Users/itsbalamurali/Workspace/out.xml > /Users/itsbalamurali/Workspace/in.xml > > XMLSEC1 VERSION: xmlsec1 1.2.20 (openssl) > > XML trying to sign: > > <?xmlversion=3D'1.0'encoding=3D'UTF-8'?> > <Otpuid=3D"999999990019"type=3D"A"tid=3D"public"lk=3D"MEaMX8fkRa6PqsqK6wG= MrEXcXFl_oXHA-YuknI2uf0gKgZ80HaZgG3A"ver=3D"1.6"txn=3D"WieW8ZTFp0"ac=3D"pub= lic"sa=3D"public"> > <Optsch=3D"00"></Opts> > <Signaturexmlns=3D"http://www.w3.org/2000/09/xmldsig#"> > <SignedInfoxmlns=3D"http://www.w3.org/2000/09/xmldsig#"> > <CanonicalizationMethodxmlns=3D"http://www.w3.org/2000/09/xmldsig#"Algori= thm=3D"http://www.w3.org/TR/2001/REC-xml-c14n-20010315"></CanonicalizationM= ethod> > <SignatureMethodxmlns=3D"http://www.w3.org/2000/09/xmldsig#"Algorithm=3D"= "></SignatureMethod> > <Referencexmlns=3D"http://www.w3.org/2000/09/xmldsig#"> > <Transformsxmlns=3D"http://www.w3.org/2000/09/xmldsig#"> > <Transformxmlns=3D"http://www.w3.org/2000/09/xmldsig#"Algorithm=3D"http:/= /www.w3.org/2000/09/xmldsig#enveloped-signature"></Transform> > <Transformxmlns=3D"http://www.w3.org/2000/09/xmldsig#"Algorithm=3D"http:/= /www.w3.org/2001/10/xml-exc-c14n#"></Transform> > </Transforms> > <DigestMethodxmlns=3D"http://www.w3.org/2000/09/xmldsig#"Algorithm=3D"htt= p://www.w3.org/2000/09/xmldsig#sha1"></DigestMethod> > <DigestValuexmlns=3D"http://www.w3.org/2000/09/xmldsig#"></DigestValue> > </Reference> > </SignedInfo> > <SignatureValuexmlns=3D"http://www.w3.org/2000/09/xmldsig#"></SignatureVa= lue> > <KeyInfoxmlns=3D"http://www.w3.org/2000/09/xmldsig#"> > <X509Dataxmlns=3D"http://www.w3.org/2000/09/xmldsig#"> > <X509Certificatexmlns=3D"http://www.w3.org/2000/09/xmldsig#"></X509Certif= icate> > </X509Data> > </KeyInfo> > </Signature> > </Otp> > > Error: > > func=3DxmlSecTransformNodeRead:file=3Dtransforms.c:line=3D1543:obj=3Dunkn= own:subj=3DxmlSecTransformIdListFindByHref:error=3D1:xmlsec > library function failed:href=3D > func=3DxmlSecTransformCtxNodeRead:file=3Dtransforms.c:line=3D694:obj=3Dun= known:subj=3DxmlSecTransformNodeRead:error=3D1:xmlsec > library function failed:name=3DSignatureMethod > func=3DxmlSecDSigCtxProcessSignedInfoNode:file=3Dxmldsig.c:line=3D742:obj= =3Dunknown:subj=3DxmlSecTransformCtxNodeRead:error=3D1:xmlsec > library function failed:node=3DSignatureMethod > func=3DxmlSecDSigCtxProcessSignatureNode:file=3Dxmldsig.c:line=3D547:obj= =3Dunknown:subj=3DxmlSecDSigCtxProcessSignedInfoNode:error=3D1:xmlsec > library function failed: > func=3DxmlSecDSigCtxSign:file=3Dxmldsig.c:line=3D303:obj=3Dunknown:subj= =3DxmlSecDSigCtxSignatureProcessNode:error=3D1:xmlsec > library function failed: > Error: signature failed > > > Thanks, > *Balamurali Pandranki,* > Phone: +91-9908640059, > Work: [email protected]. > > > _______________________________________________ > xmlsec mailing list > [email protected] > http://www.aleksey.com/mailman/listinfo/xmlsec > --_000_PN1PR0101MB1488434442D440BD6CAC097AA34F0PN1PR0101MB1488_ Content-Type: text/html; charset="Windows-1252" Content-Transfer-Encoding: quoted-printable <html> <head> <meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3DWindows-1= 252"> <meta name=3D"Generator" content=3D"Microsoft Exchange Server"> <!-- converted from text --><style><!-- .EmailQuote { margin-left: 1pt; pad= ding-left: 4pt; border-left: #800000 2px solid; } --></style> </head> <body> <div> <div dir=3D"auto" style=3D"direction:ltr; margin:0; padding:0; font-family:= sans-serif; font-size:11pt; color:black; background-color:white"> Thank you,<br> <br> </div> <div dir=3D"auto" style=3D"direction:ltr; margin:0; padding:0; font-family:= sans-serif; font-size:11pt; color:black; background-color:white"> Solved it.<br> <br> </div> <div dir=3D"auto" style=3D"direction:ltr; margin:0; padding:0; font-family:= sans-serif; font-size:11pt; color:black; background-color:white"> <div dir=3D"auto" style=3D"direction:ltr; margin:0; padding:0; font-family:= sans-serif; font-size:11pt; color:black; background-color:white"> Best,<br> </div> <div dir=3D"auto" style=3D"direction:ltr; margin:0; padding:0; font-family:= sans-serif; font-size:11pt; color:black; background-color:white"> Balamurali Pandranki,<br> </div> <div dir=3D"auto" style=3D"direction:ltr; margin:0; padding:0; font-family:= sans-serif; font-size:11pt; color:black; background-color:white"> +91-990-864-0059,<br> </div> <div dir=3D"auto" style=3D"direction:ltr; margin:0; padding:0; font-family:= sans-serif; font-size:11pt; color:black; background-color:white"> P.S I am mobile.</div> <br> </div> <hr tabindex=3D"-1" style=3D"display:inline-block; width:98%"> <div id=3D"x_divRplyFwdMsg" dir=3D"ltr"><font face=3D"Calibri, sans-serif" = color=3D"#000000" style=3D"font-size:11pt"><b>From:</b> Aleksey Sanin <a= [email protected]><br> <b>Sent:</b> Sunday, October 15, 2017 2:57:23 AM<br> <b>To:</b> Balamurali Pandranki; [email protected]<br> <b>Subject:</b> Re: [xmlsec] Problem signing xml</font> <div> </div> </div> </div> <font size=3D"2"><span style=3D"font-size:10pt;"> <div class=3D"PlainText">You have a problem in the SignatureNode definition= as indicated by the<br> error message.<br> <br> Aleksey<br> <br> On 10/14/17 6:02 AM, Balamurali Pandranki wrote:<br> > <br> > Command : <br> > <br> > xmlsec1 --sign --pkcs12 Staging_Signature_PrivateKey.p12 --pwd public<= br> > --output /Users/itsbalamurali/Workspace/out.xml<br> > /Users/itsbalamurali/Workspace/in.xml<br> > <br> > XMLSEC1 VERSION: xmlsec1 1.2.20 (openssl)<br> > <br> > XML trying to sign:<br> > <br> > <?xmlversion=3D'1.0'encoding=3D'UTF-8'?><br> > <Otpuid=3D"999999990019"type=3D"A"tid=3D"p= ublic"lk=3D"MEaMX8fkRa6PqsqK6wGMrEXcXFl_oXHA-YuknI2uf0gKgZ80HaZgG= 3A"ver=3D"1.6"txn=3D"WieW8ZTFp0"ac=3D"public&= quot;sa=3D"public"><br> > <Optsch=3D"00"></Opts><br> > <Signaturexmlns=3D"http://www.w3.org/2000/09/xmldsig#">= ;<br> > <SignedInfoxmlns=3D"http://www.w3.org/2000/09/xmldsig#"&g= t;<br> > <CanonicalizationMethodxmlns=3D"http://www.w3.org/2000/09/xmld= sig#"Algorithm=3D"http://www.w3.org/TR/2001/REC-xml-c14n-20010315= "></CanonicalizationMethod><br> > <SignatureMethodxmlns=3D"http://www.w3.org/2000/09/xmldsig#&qu= ot;Algorithm=3D""></SignatureMethod><br> > <Referencexmlns=3D"http://www.w3.org/2000/09/xmldsig#">= ;<br> > <Transformsxmlns=3D"http://www.w3.org/2000/09/xmldsig#"&g= t;<br> > <Transformxmlns=3D"http://www.w3.org/2000/09/xmldsig#"Alg= orithm=3D"http://www.w3.org/2000/09/xmldsig#enveloped-signature"&= gt;</Transform><br> > <Transformxmlns=3D"http://www.w3.org/2000/09/xmldsig#"Alg= orithm=3D"http://www.w3.org/2001/10/xml-exc-c14n#"></Transf= orm><br> > </Transforms><br> > <DigestMethodxmlns=3D"http://www.w3.org/2000/09/xmldsig#"= Algorithm=3D"http://www.w3.org/2000/09/xmldsig#sha1"></Dige= stMethod><br> > <DigestValuexmlns=3D"http://www.w3.org/2000/09/xmldsig#"&= gt;</DigestValue><br> > </Reference><br> > </SignedInfo><br> > <SignatureValuexmlns=3D"http://www.w3.org/2000/09/xmldsig#&quo= t;></SignatureValue><br> > <KeyInfoxmlns=3D"http://www.w3.org/2000/09/xmldsig#"><= br> > <X509Dataxmlns=3D"http://www.w3.org/2000/09/xmldsig#">= <br> > <X509Certificatexmlns=3D"http://www.w3.org/2000/09/xmldsig#&qu= ot;></X509Certificate><br> > </X509Data><br> > </KeyInfo><br> > </Signature><br> > </Otp><br> > <br> > Error:<br> > <br> > func=3DxmlSecTransformNodeRead:file=3Dtransforms.c:line=3D1543:obj=3Du= nknown:subj=3DxmlSecTransformIdListFindByHref:error=3D1:xmlsec<br> > library function failed:href=3D<br> > func=3DxmlSecTransformCtxNodeRead:file=3Dtransforms.c:line=3D694:obj= =3Dunknown:subj=3DxmlSecTransformNodeRead:error=3D1:xmlsec<br> > library function failed:name=3DSignatureMethod<br> > func=3DxmlSecDSigCtxProcessSignedInfoNode:file=3Dxmldsig.c:line=3D742:= obj=3Dunknown:subj=3DxmlSecTransformCtxNodeRead:error=3D1:xmlsec<br> > library function failed:node=3DSignatureMethod<br> > func=3DxmlSecDSigCtxProcessSignatureNode:file=3Dxmldsig.c:line=3D547:o= bj=3Dunknown:subj=3DxmlSecDSigCtxProcessSignedInfoNode:error=3D1:xmlsec<br> > library function failed:<br> > func=3DxmlSecDSigCtxSign:file=3Dxmldsig.c:line=3D303:obj=3Dunknown:sub= j=3DxmlSecDSigCtxSignatureProcessNode:error=3D1:xmlsec<br> > library function failed:<br> > Error: signature failed<br> > <br> > <br> > Thanks,<br> > *Balamurali Pandranki,*<br> > Phone: +91-9908640059,<br> > Work: [email protected].<br> > <br> > <br> > _______________________________________________<br> > xmlsec mailing list<br> > [email protected]<br> > <a href=3D"http://www.aleksey.com/mailman/listinfo/xmlsec">http://www.= aleksey.com/mailman/listinfo/xmlsec</a><br> > <br> </div> </span></font> </body> </html> --_000_PN1PR0101MB1488434442D440BD6CAC097AA34F0PN1PR0101MB1488_-- --===============0664272043== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KeG1sc2VjIG1h aWxpbmcgbGlzdAp4bWxzZWNAYWxla3NleS5jb20KaHR0cDovL3d3dy5hbGVrc2V5LmNvbS9tYWls bWFuL2xpc3RpbmZvL3htbHNlYwo= --===============0664272043==--