<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://forums.asp.net/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Migrating from JSP/Servlets to ASP.NET</title><link>http://forums.asp.net/45.aspx</link><description>Discuss moving from JSP/Servlets to ASP.NET.</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP1 (Build: 20510.895)</generator><item><title>Re: Signature in Java</title><link>http://forums.asp.net/thread/2579710.aspx</link><pubDate>Tue, 26 Aug 2008 03:08:33 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:2579710</guid><dc:creator>onlinesignature</dc:creator><author>onlinesignature</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/2579710.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=45&amp;PostID=2579710</wfw:commentRss><description>&lt;p&gt;&lt;a href="http://mysignature.brinkster.net" title="Online Signature Capture ASP.NET Application" target="_blank"&gt;http://my&lt;b&gt;signature&lt;/b&gt;.brinkster.net&lt;/a&gt; (For ASP.NET 1.1 2.0) is an ASP.NET Web Custom Control that creates an online signature box to capture signature. Users can now &lt;a href="http://mysignature.brinkster.net" title="Sign Documents Online"&gt;sign documents online&lt;/a&gt; using mouse as a pen!. Your clients can use this signature box to sign or upload their signature in your web page. Pure .NET code and HTML based, no plugins, activeX required.&lt;br /&gt;&lt;br /&gt;It is compatible with all browsers and available with full source code @ &lt;b&gt;$19.00&lt;/b&gt; no extra license fees required. So if you are looking for &lt;a href="http://mysignature.brinkster.net" title="Online Signature Capture Application"&gt;online signature capture&lt;/a&gt; website control then visit &lt;a href="http://mysignature.brinkster.net" title="mysignature.brinkster.net"&gt;http://my&lt;b&gt;signature&lt;/b&gt;.brinkster.net&lt;/a&gt;&lt;/p&gt;</description></item><item><title>Re: Signature in Java</title><link>http://forums.asp.net/thread/1904483.aspx</link><pubDate>Wed, 12 Sep 2007 09:53:01 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1904483</guid><dc:creator>avaya001</dc:creator><author>avaya001</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1904483.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=45&amp;PostID=1904483</wfw:commentRss><description>&lt;p&gt;Hi, I am trying to do something similar to this and am finding very little useful information. Any help appreciated!&lt;/p&gt;
&lt;p&gt;I am trying to sign and encrypt data using X509 Certs in .Net 2.0 and send the info to a Java webservice.&lt;/p&gt;
&lt;p&gt;I need to do the following:&lt;/p&gt;
&lt;p&gt;Sign the data with the my private key from my cert and get the signature with&amp;nbsp;SHA1 with RSA format&lt;br /&gt;Encrypt the data using AES with a random&amp;nbsp;generated key&lt;br /&gt;Encrypt the random gen AES key&amp;nbsp;using the recipients public key&lt;br /&gt;Send the webervice the signed, encrypted data and the signature&lt;/p&gt;
&lt;p&gt;I have succeeded in encrypting and decrypting the data using the certs. The problem I have is getting the signature from my cert&amp;#39;s private key. Any help on how to achieve this?&lt;/p&gt;
&lt;p&gt;Thanks&lt;br /&gt;Stephen&lt;/p&gt;</description></item><item><title>Re: Signature in Java</title><link>http://forums.asp.net/thread/1567397.aspx</link><pubDate>Wed, 07 Feb 2007 11:30:46 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1567397</guid><dc:creator>jcw14</dc:creator><author>jcw14</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1567397.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=45&amp;PostID=1567397</wfw:commentRss><description>&lt;p&gt;You asked this a long time ago, so you've probably worked out the answer by now, but you do something similar to this:&lt;/p&gt;
&lt;p&gt;&amp;nbsp; RSACryptoServiceProvider rsa = new RSACryptoServiceProvider();&lt;br /&gt;&amp;nbsp; rsa.FromXmlString(certificate.PublicKey.Key.ToXmlString(false));&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Signature in Java</title><link>http://forums.asp.net/thread/1475736.aspx</link><pubDate>Fri, 24 Nov 2006 18:40:45 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1475736</guid><dc:creator>crino</dc:creator><author>crino</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1475736.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=45&amp;PostID=1475736</wfw:commentRss><description>&lt;p&gt;I've this code:&lt;br /&gt;&amp;nbsp; &lt;pre class=coloredcode&gt;Signature sigVer = Signature.getInstance(&lt;span class=st&gt;"SHA1withRSA"&lt;/span&gt;);
sigVer.initVerify(publicKey);
sigVer.update(barrayToEncrypt);
result = sigVer.verify(barrayToVerify);&lt;/pre&gt;&amp;nbsp; 
&lt;p&gt;how can convert to C# (ASP.NET 2.0)??&lt;br /&gt;I tried with: &lt;/p&gt;
&lt;p&gt;RSACryptoServiceProvider RSA = (RSACryptoServiceProvider)publicKey.Key; //publicKey is get from certificate file with X509Certificate2 class&lt;br /&gt;but wheni try to call RSA.Encrypt() i get 'The key status is invalid' or something like this&lt;br /&gt;&lt;br /&gt;Any idea?? :(&lt;/p&gt;&lt;/p&gt;</description></item></channel></rss>