I have an Xamarin.Forms application that communicates with a SignalR hub. Communication uses my own SSL certificate, which, however, is not trusted. No problem handling untrusted certified Android and iOS using the interface ICertificatePolicyand implementation ServicePointManager.ServerCertificateValidationCallback. However, I can not find a reasonable alternative for Windows 8.1, Windows Phone 8.1 and Windows 10 Universal App.
Is there an alternative? It doesn’t matter if I use my platform, I can use Xamarin DependencyService. However, it must trigger an event by passing a certificate so that I can ask the user if he accepts a particular certificate.
UPDATE
As I just found out, the ICertificatePolicy method is not called at all, leaving only the ServicePointManager.ServerCertificateValidationCallback method (for iOS and Android). Is there an alternative to this class in Windows Phone 8.1 and Windows 10 Universal App?
UPDATE 2
I tried using this guide by including a self-signed certificate in an application for Windows 10 and writing the code specified in Windows Phone 8.1. Does not work.
I tried to implement this workaround . Even that didn’t work.
, SSL, , , , . , , Windows 10, Windows Phone 8.1.
, - HttpBaseProtocolFilter, , , SignalR.
- ?