[Mono-aspnet-list] Problem authenticating at ssl atom feed

Gonzalo Paniagua Javier gonzalo.mono at gmail.com
Fri Aug 20 17:33:33 EDT 2010


Take a look at http://www.mono-project.com/FAQ:_Security and
http://www.mono-project.com/UsingTrustedRootsRespectfully

-Gonzalo

On Sun, 2010-08-15 at 11:34 -0700, alexware69 wrote:
> Hi, I am trying to connect to google's gmail atom feed in order to get
> unread(new) emails. I have no problems connecting in Windows, but when I try
> to do it in linux with mono I get the following error:
> Error getting response stream (Write: The authentication or decryption has
> failed.): SendFailure
> >From what I have read in other forums the problem might be that mono is not
> recognizing the server's ssl certificate. Here is my code:
> 
> protected virtual void OnButton3Clicked (object sender, System.EventArgs e)
> 	{
> 		
> 		System.Net.WebClient objClient = new System.Net.WebClient();
> 		
> 		try
> 		{
> 		   objClient.Credentials = new
> System.Net.NetworkCredential("myuser","mypassword");
> 		
>                    response =  
> Encoding.UTF8.GetString(objClient.DownloadData("https://mail.google.com/mail/feed/atom"));
> 		}
> 		catch (Exception ex)
> 		{
> 			
> 		}




More information about the Mono-aspnet-list mailing list