Hi Aleksey,<div><br></div><div>Thanks for the response.</div><div><br></div><div>I will try it out and I have one more question before getting started. </div><div><br></div><div>My production system is AIX 5.3. Is XMLSec known to work well on that platform?<div>
<br></div><div>Regards,</div><div>Anurag<div><br><div class="gmail_quote">On Mon, Jan 10, 2011 at 9:00 PM, Aleksey Sanin <span dir="ltr"><<a href="mailto:aleksey@aleksey.com">aleksey@aleksey.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Yes you can.<div class="im"><br>
<br>
"Appreciate if you could help me with a simple code snippet."<br>
<br></div>
Look in the "examples" folder in the xmlsec distribution<br>
<br>
Aleksey<div><div></div><div class="h5"><br>
<br>
On 1/10/11 5:59 AM, Anurag Chourasia wrote:<br>
</div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div></div><div class="h5">
Hi All,<br>
<br>
I have a Private key and Public Key which comes in an XML in the<br>
following form.<br>
<br>
<RSASK>-----BEGIN RSA PRIVATE KEY-----<br>
MIIBOgIBAAJBALWmf82Fh6TUrzE5TV7BoLdamFWd/nGFzSNLtYsncENI07X47XKC<br>
G/YDRZeRcWKq+6P1pbM9ejgjXF72FCZZbL8CAQMCQHkZqokDr8M4dMt7iOnWayTn<br>
EDkT/vZZM2zdI7IaSteEwnbsIYjcAIkD0m3E2vZA9oNcjwEQ19ZXjyAhh+Y7B3sC<br>
IQDkhKYQUGPErXMsxhRDXlvpBzjPq7pGCTaY3th2KszAOwIhAMt+8KrU1FZ7Cl0s<br>
1eWS7aDXsf+F6fBtaWzP61IiNCFNAiEAmFhutYrtLcj3cy64LOmSm1ol38fRhAYk<br>
ZenlpByIgCcCIQCHqfXHOI2O/LGTczlDt0kV5SFVA/FK85ud3/I2wXgWMwIhAMXy<br>
zk5RMjE25Y+PFyevn4j1nWme6cvbv49g1OCZkZxE -----END RSA PRIVATE<br>
KEY-----</RSASK><br>
<br>
<RSAPUBK>-----BEGIN PUBLIC KEY-----<br>
MFowDQYJKoZIhvcNAQEBBQADSQAwRgJBALWmf82Fh6TUrzE5TV7BoLdamFWd/nGF<br>
zSNLtYsncENI07X47XKCG/YDRZeRcWKq+6P1pbM9ejgjXF72FCZZbL8CAQM= -----END<br>
PUBLIC KEY-----</RSAPUBK><br>
<br>
I need to use the "Private Key" above and transform a stream of text<br>
(Which is basicallly one element in the same XML) into a "Digital<br>
Signature (DER Encoded PKCS#1)" utilizing the "Private Key".<br>
<br>
Could you please let me know if I could use xmlsec to meet this<br>
requirement. Appreciate if you could help me with a simple code snippet.<br>
<br>
Thanks for your help on this.<br>
<br>
Regards,<br>
Anurag<br>
<br>
<br>
<br></div></div>
_______________________________________________<br>
xmlsec mailing list<br>
<a href="mailto:xmlsec@aleksey.com" target="_blank">xmlsec@aleksey.com</a><br>
<a href="http://www.aleksey.com/mailman/listinfo/xmlsec" target="_blank">http://www.aleksey.com/mailman/listinfo/xmlsec</a><br>
</blockquote>
</blockquote></div><br></div></div></div>