Forum Xamarin Xamarin.iOS

How to use certificate in my web service calls

JunDuJunDu USMember ✭✭


I am looking for some resources about adding certificates to secure web service calls. What's required, how do I set up my iPhones and so on?



  • Are you talking about server cert validation or about self-signed cert authentication?

    Both problems are solved using DidReceiveChallenge method. For server cert validation use challenge.ProtectionSpace.AuthenticationMethod == "NSURLAuthenticationMethodServerTrust" authentication method, for client - "NSURLAuthenticationMethodClientCertificate".

  • JunDuJunDu USMember ✭✭
    edited November 2014

    I don't really have a clue. Here is what we need. Our server side needs to validate that the iPhone that makes the web service (SOAP) call is a trust-able client. I only have a blur picture in my mind. We will distribute a certificate along with the app. When the app calls, it will pass the certificate along with the web request. I do need a sample to walk through the steps I should implement.

Sign In or Register to comment.