SecurityProtocolType 'Tls12' not available

We have been developing the application for multiple platforms iOS, Android and Windows. Apps are consuming the REST APIs for data. We have a PCL project that is handling all this communication stuff with HttpClient. Now we have implemented the Https on server with SecurityProtocolType=TLS12. We need to set the following option before making a rest API call

System.Net.ServicePointManager.SecurityProtocol = System.Net.SecurityProtocolType.Tls12;

It seems like that there is no option available of ServicePointManager in the PCL project. Then we had tried to use the same in the native application folder.
Still there is no option to select the 'TLS12'. We have only two options available TLS/SSL3.

Let us suggest a solution to deal with this issue.

Posts

Sign In or Register to comment.