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">
&#43;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 &lt;a=
[email protected]&gt;<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>&nbsp;</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>
&gt; <br>
&gt; Command :&nbsp;<br>
&gt; <br>
&gt; xmlsec1 --sign --pkcs12 Staging_Signature_PrivateKey.p12 --pwd public<=
br>
&gt; --output /Users/itsbalamurali/Workspace/out.xml<br>
&gt; /Users/itsbalamurali/Workspace/in.xml<br>
&gt; <br>
&gt; XMLSEC1 VERSION:&nbsp;xmlsec1 1.2.20 (openssl)<br>
&gt; <br>
&gt; XML trying to sign:<br>
&gt; <br>
&gt; &lt;?xmlversion=3D'1.0'encoding=3D'UTF-8'?&gt;<br>
&gt; &lt;Otpuid=3D&quot;999999990019&quot;type=3D&quot;A&quot;tid=3D&quot;p=
ublic&quot;lk=3D&quot;MEaMX8fkRa6PqsqK6wGMrEXcXFl_oXHA-YuknI2uf0gKgZ80HaZgG=
3A&quot;ver=3D&quot;1.6&quot;txn=3D&quot;WieW8ZTFp0&quot;ac=3D&quot;public&=
quot;sa=3D&quot;public&quot;&gt;<br>
&gt; &lt;Optsch=3D&quot;00&quot;&gt;&lt;/Opts&gt;<br>
&gt; &lt;Signaturexmlns=3D&quot;http://www.w3.org/2000/09/xmldsig#&quot;&gt=
;<br>
&gt; &lt;SignedInfoxmlns=3D&quot;http://www.w3.org/2000/09/xmldsig#&quot;&g=
t;<br>
&gt; &lt;CanonicalizationMethodxmlns=3D&quot;http://www.w3.org/2000/09/xmld=
sig#&quot;Algorithm=3D&quot;http://www.w3.org/TR/2001/REC-xml-c14n-20010315=
&quot;&gt;&lt;/CanonicalizationMethod&gt;<br>
&gt; &lt;SignatureMethodxmlns=3D&quot;http://www.w3.org/2000/09/xmldsig#&qu=
ot;Algorithm=3D&quot;&quot;&gt;&lt;/SignatureMethod&gt;<br>
&gt; &lt;Referencexmlns=3D&quot;http://www.w3.org/2000/09/xmldsig#&quot;&gt=
;<br>
&gt; &lt;Transformsxmlns=3D&quot;http://www.w3.org/2000/09/xmldsig#&quot;&g=
t;<br>
&gt; &lt;Transformxmlns=3D&quot;http://www.w3.org/2000/09/xmldsig#&quot;Alg=
orithm=3D&quot;http://www.w3.org/2000/09/xmldsig#enveloped-signature&quot;&=
gt;&lt;/Transform&gt;<br>
&gt; &lt;Transformxmlns=3D&quot;http://www.w3.org/2000/09/xmldsig#&quot;Alg=
orithm=3D&quot;http://www.w3.org/2001/10/xml-exc-c14n#&quot;&gt;&lt;/Transf=
orm&gt;<br>
&gt; &lt;/Transforms&gt;<br>
&gt; &lt;DigestMethodxmlns=3D&quot;http://www.w3.org/2000/09/xmldsig#&quot;=
Algorithm=3D&quot;http://www.w3.org/2000/09/xmldsig#sha1&quot;&gt;&lt;/Dige=
stMethod&gt;<br>
&gt; &lt;DigestValuexmlns=3D&quot;http://www.w3.org/2000/09/xmldsig#&quot;&=
gt;&lt;/DigestValue&gt;<br>
&gt; &lt;/Reference&gt;<br>
&gt; &lt;/SignedInfo&gt;<br>
&gt; &lt;SignatureValuexmlns=3D&quot;http://www.w3.org/2000/09/xmldsig#&quo=
t;&gt;&lt;/SignatureValue&gt;<br>
&gt; &lt;KeyInfoxmlns=3D&quot;http://www.w3.org/2000/09/xmldsig#&quot;&gt;<=
br>
&gt; &lt;X509Dataxmlns=3D&quot;http://www.w3.org/2000/09/xmldsig#&quot;&gt;=
<br>
&gt; &lt;X509Certificatexmlns=3D&quot;http://www.w3.org/2000/09/xmldsig#&qu=
ot;&gt;&lt;/X509Certificate&gt;<br>
&gt; &lt;/X509Data&gt;<br>
&gt; &lt;/KeyInfo&gt;<br>
&gt; &lt;/Signature&gt;<br>
&gt; &lt;/Otp&gt;<br>
&gt; <br>
&gt; Error:<br>
&gt; <br>
&gt; func=3DxmlSecTransformNodeRead:file=3Dtransforms.c:line=3D1543:obj=3Du=
nknown:subj=3DxmlSecTransformIdListFindByHref:error=3D1:xmlsec<br>
&gt; library function failed:href=3D<br>
&gt; func=3DxmlSecTransformCtxNodeRead:file=3Dtransforms.c:line=3D694:obj=
=3Dunknown:subj=3DxmlSecTransformNodeRead:error=3D1:xmlsec<br>
&gt; library function failed:name=3DSignatureMethod<br>
&gt; func=3DxmlSecDSigCtxProcessSignedInfoNode:file=3Dxmldsig.c:line=3D742:=
obj=3Dunknown:subj=3DxmlSecTransformCtxNodeRead:error=3D1:xmlsec<br>
&gt; library function failed:node=3DSignatureMethod<br>
&gt; func=3DxmlSecDSigCtxProcessSignatureNode:file=3Dxmldsig.c:line=3D547:o=
bj=3Dunknown:subj=3DxmlSecDSigCtxProcessSignedInfoNode:error=3D1:xmlsec<br>
&gt; library function failed:<br>
&gt; func=3DxmlSecDSigCtxSign:file=3Dxmldsig.c:line=3D303:obj=3Dunknown:sub=
j=3DxmlSecDSigCtxSignatureProcessNode:error=3D1:xmlsec<br>
&gt; library function failed:<br>
&gt; Error: signature failed<br>
&gt; <br>
&gt; <br>
&gt; Thanks,<br>
&gt; *Balamurali Pandranki,*<br>
&gt; Phone: &#43;91-9908640059,<br>
&gt; Work: [email protected].<br>
&gt; <br>
&gt; <br>
&gt; _______________________________________________<br>
&gt; xmlsec mailing list<br>
&gt; [email protected]<br>
&gt; <a href=3D"http://www.aleksey.com/mailman/listinfo/xmlsec">http://www.=
aleksey.com/mailman/listinfo/xmlsec</a><br>
&gt; <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==--