Forum Xamarin.Forms


The Xamarin Forums have officially moved to the new Microsoft Q&A experience. Microsoft Q&A is the home for technical questions and answers at across all products at Microsoft now including Xamarin!

To create new threads and ask questions head over to Microsoft Q&A for .NET and get involved today.

Caught unhandled exception in MonoBtlsSSlCtx.ProcessHandshake

Since its inception our Android/iOS app has used the following code

ServicePointManager.CheckCertificateRevocationList = false; System.Net.ServicePointManager.ServerCertificateValidationCallback += (sender, cert, chain, sslPolicyErrors) => { if (cert != null) System.Diagnostics.Debug.WriteLine(cert); return true; };

to ignore SSL errors when our app connects to our server with a self-signed certificate.
Recently we've had to upgrade all our tools to VS 2090 Preview 2 in order to be able to build for API 29.
Our Android build runs but generates an error "Caught unhandled exception in MonoBtlsSSlCtx.ProcessHandshake" and our webrequests to
our https server now fail. It appears the validation callback is no longer being called.

What is the solution for this without having to rewrite our communication stuff to the server?


Sign In or Register to comment.