Quantcast
Channel: Xamarin.Forms — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 91519

Accept all server certificates with HttpClient in Xamarin.Forms (including UWP)

$
0
0

Hello,

my app connects to a server that typically has a self signed certificate. I know that this is not perfect and I will show a warning to the user, but at least for now I need to able to accept all server certificates in my Xamarin.Forms project.

I use System.Net.Http.HttpClient and I have not found a universal solution.

ServerCertificateCustomValidationCallback and ServicePointManager.ServerCertificateValidationCallback are apparently not available for UWP.

How could I solve this issue to use Xamarin.Forms with an HttpClient that accepts all certificates?


Viewing all articles
Browse latest Browse all 91519

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>