none
Portable class library - SSL certificate ignore support. RRS feed

  • Question

  • Hi,

    We are developing mobile based project targeting to windows and ios platform. 

    1. Project has portable class library that is been shared among all this platforms.

    2. We have asp.net web api services for data provider hosted on server with http and https (ssL) enabled. 

    3. We are successfully able to call web api methods using System.Net.HttpClient in portable class library and data is provided by the utility helper methods to all platforms. 

    4. Now based on the specific requirement we have to utilized https enabled service and we have to switch to ssl enabled call. 

    5. Based on my research over internet "ServicePointManager.ServerCertificateValidationCallback" is one we can use in .net native framework libraries but not available for portable libraries. 

    If anyone can help in this area that how can we make https call from portable class library.

    Thanks in Advance,

    Brajesh patel


    Friday, February 20, 2015 11:31 AM

Answers

  • Hello Brajesh,
    As far as I know, in these currently released PCL, there seems to be no way to use the SSL certificate for http request.
    My suggestion is that you could invite your friends or colleagues to vote this idea in below link(someone else already psot this request to the team):
    http://visualstudio.uservoice.com/forums/121579-visual-studio/suggestions/4784983-support-server-ssl-certificate-chain-inspection-in
    With the increase of the the voice number, this priority of this idea would be improved.
    Regards.

    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click HERE to participate the survey.

    Sunday, February 22, 2015 2:28 AM
    Moderator

All replies

  • Hello Brajesh,
    As far as I know, in these currently released PCL, there seems to be no way to use the SSL certificate for http request.
    My suggestion is that you could invite your friends or colleagues to vote this idea in below link(someone else already psot this request to the team):
    http://visualstudio.uservoice.com/forums/121579-visual-studio/suggestions/4784983-support-server-ssl-certificate-chain-inspection-in
    With the increase of the the voice number, this priority of this idea would be improved.
    Regards.

    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click HERE to participate the survey.

    Sunday, February 22, 2015 2:28 AM
    Moderator
  • got any solution because I am facing the same issue.

    Please share me if anything.


    CB

    • Proposed as answer by CB Yadav Wednesday, March 30, 2016 12:02 PM
    • Unproposed as answer by CB Yadav Wednesday, March 30, 2016 12:02 PM
    Wednesday, March 30, 2016 10:13 AM