Hi Guys,

I have one question regarding accessing the certificates, is it necessary to
integrate them in the project itself  or also
possible to get them using the xoauth_signature_publickey value ?

2008/4/15 csharpsocial <[EMAIL PROTECTED]>:

>
> This works like a charm and by removing the marshal from the certutil
> class it even works on a medium trust environment
> Thank you !!!
>
> On Apr 15, 8:20 am, "Vibhore Goyal" <[EMAIL PROTECTED]> wrote:
> > This code works for Us!!
> >
> >  OpenSSL.rar
> > 66KDownload
> >
> > From: opensocial-orkut@googlegroups.com
> > [mailto:[EMAIL PROTECTED] On Behalf Of Marc Wessely
> > Sent: 14 April 2008 07:06 PM
> > To: opensocial-orkut@googlegroups.com
> > Subject: [orkut-developer] Re: Verifying signature with C# \ ASP.NET
> >
> > yes me still trying to get it work will post code once it is working!
> >
> > 2008/4/14 csharpsocial <[EMAIL PROTECTED]>:
> >
> > Has anyone done any work with oAuth and C# at all?
> >
> > On Apr 13, 4:45 pm, csharpsocial <[EMAIL PROTECTED]> wrote:
> >
> >
> >
> > > This is the code that i would have expected to work but doesn't :(
> > > baseSignature is generated with the GenerateSignatureBase() of the
> > > auth class
> >
> > > X509Certificate2 certificate = new X509Certificate2(@"C:\pub.
> > > 1199819524.-1556113204990931254.cer");
> > > RSACryptoServiceProvider rsacp = new RSACryptoServiceProvider();
> > > string publicKey = certificate.PublicKey.Key.ToXmlString(false);
> > > rsacp.FromXmlString(publicKey);
> >
> > > byte[] verify = Encoding.UTF8.GetBytes(baseSignature);
> >
> > > byte[] signature = Convert.FromBase64String(oauth_signature);
> > > bool ok = rsacp.VerifyData(verify, 'SHA1', signature);
> > > Console.WriteLine("Success: {0}", ok);
> >
> > > Can anyone see where am I going wrong?- Hide quoted text -
> >
> > - Show quoted text -
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Orkut Developer Forum" group.
To post to this group, send email to opensocial-orkut@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/opensocial-orkut?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to