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

How to configure SSL/TLS with a self signed certificate for iOS project.

$
0
0

Hi all,
I've this problem: I am developing a PCL app and I need to call Api hosted in my working company's server. This endpoint have a self signed certificate encrypted and authenticated using TLS 1.2 ECDHE_RSA with X25519 , and AES_256_GCM.

In OnCreate(Droid) and in FinishedLaunching(iOS) methods I have added this code (suggested by tons of similar post):
ServicePointManager.ServerCertificateValidationCallback += (sender, certificate, chain, sslPolicyErrors) => true; to resolve the problem of the untrusted certificate.
In Android works well but in iOS my request incurs in timeout response.

One solution is send the certificate to all devices in test environment and install it on device, but I am not able to send the certificate.
Then, how can i resolve this?

Thank you in advance for anyone who wants to answer.


Viewing all articles
Browse latest Browse all 77050

Trending Articles



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