Thanks Jon, The certificate is indeed a development certificate, therefore, a self-signed certificate. I'll check the callback in the ServicePointManager.
Cheers, On 10 April 2012 18:13, Jonathan Pryor <j...@xamarin.com> wrote: > On Apr 10, 2012, at 5:41 AM, Goncalo Oliveira wrote: > > Are there still issues with SSL in monodroid? I'm having a zero status > code when accessing an SSL rest service. I know that in the past there was > a bug related to this; was it fixed? > > I'm not aware of any current issues with SSL, in that our tests check for > accessing an HTTPS site: > > > https://github.com/xamarin/monodroid-samples/blob/master/SanityTests/Hello.cs#L720 > > However, it does require that Android accept the SSL certificates that > your site is using. A good way to check this is to open Android's Browser > and go to your HTTPS site: if Browser shows a dialog asking you to accept > the certificate, then it will NOT work as-is in Mono for Android. > > If you need to accept "arbitrary" certificates, you should instead use the > ServicePointManager.ServerCertificateValidationCallback property to > manually validate the SSL certificate and accept or deny it: > > > http://androidapi.xamarin.com/?link=P%3aSystem.Net.ServicePointManager.ServerCertificateValidationCallback > > Thanks, > - Jon > > _______________________________________________ > Monodroid mailing list > Monodroid@lists.ximian.com > > UNSUBSCRIBE INFORMATION: > http://lists.ximian.com/mailman/listinfo/monodroid > -- Gonçalo Oliveira
_______________________________________________ Monodroid mailing list Monodroid@lists.ximian.com UNSUBSCRIBE INFORMATION: http://lists.ximian.com/mailman/listinfo/monodroid