Forum Xamarin.Forms
We are excited to announce that the Xamarin Forums are moving to the new Microsoft Q&A experience. Q&A is the home for technical questions and answers at across all products at Microsoft now including Xamarin!

We encourage you to head over to Microsoft Q&A for .NET for posting new questions and get involved today.

Caught unhandled exception in MonoBtlsSSlCtx.ProcessHandshake

ScottPerkinScottPerkin USMember ✭✭

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?

Richard

Sign In or Register to comment.