locked
WP8.1 and installed certificates with HttpClient RRS feed

  • Question

  • Hi,

    I have a WP8 app that uses HttpClient for connecting to servers that sometimes have self-signed certificates. Since those will produce 404:s for the URL, I have instructed users how to download the certificates and install them locally on the phone. Now with the release of WP8.1, I have been getting reports that this no longer works. I ran into an article

    http://blog.kulman.sk/ignoring-certificate-errors-in-windows-phone-8-1/

    that indicates those certificate errors can be bypassed but is the way to handle this if I want a single app working for WP8/WP8.1. The two HttpClient classes (System.Net and Windows.Web) appear a bit confusing.

    Thanks in advance,

      Nik

    Monday, August 11, 2014 4:33 PM

Answers

  • Hi Nicklas,

    The windows.web.http namespace is newly introduced in windows 8.1 & windows phone 8.1, that means we can only use this in windows runtime app and windows silverlight 8.1. So we cannot do the same with wp8 and wp8.1.

    I do understand this will bring to you inconvenience when you would like to port to both wp8 and wp8.1, but it is the truth for now. We need to keep the previous work around you applied for your wp8 app using system.net.http namespace and use the windows.web.http for wp8.1.

    But I do feel there should be a better solution for this as you expected. I will suggest you submit your feedback on http://wpdev.uservoice.com/forums/110705-dev-platform and ask your friend vote on your post. That will push the dev team to provide a solution on this with higher priority.


    <THE CONTENT IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND, WHETHER EXPRESS OR IMPLIED>
    Thanks
    Alan Yao
    MSDN Community Support

    Please remember to "Mark as Answer" the responses that resolved your issue. It is a common way to recognize those who have helped you, and makes it easier for other visitors to find the resolution later.

    Wednesday, August 13, 2014 5:42 AM

All replies

  • Hi Nicklas,

    The windows.web.http namespace is newly introduced in windows 8.1 & windows phone 8.1, that means we can only use this in windows runtime app and windows silverlight 8.1. So we cannot do the same with wp8 and wp8.1.

    I do understand this will bring to you inconvenience when you would like to port to both wp8 and wp8.1, but it is the truth for now. We need to keep the previous work around you applied for your wp8 app using system.net.http namespace and use the windows.web.http for wp8.1.

    But I do feel there should be a better solution for this as you expected. I will suggest you submit your feedback on http://wpdev.uservoice.com/forums/110705-dev-platform and ask your friend vote on your post. That will push the dev team to provide a solution on this with higher priority.


    <THE CONTENT IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND, WHETHER EXPRESS OR IMPLIED>
    Thanks
    Alan Yao
    MSDN Community Support

    Please remember to "Mark as Answer" the responses that resolved your issue. It is a common way to recognize those who have helped you, and makes it easier for other visitors to find the resolution later.

    Wednesday, August 13, 2014 5:42 AM
  • Thanks for the reply, I'll have to think about the best approach to this. BTW, does the store have any check regarding WP version so that you could deploy both a WP8 and WP8.1 version (if I decide to pick up more 8.1 features) and the correct version is always offered to the user?
    Wednesday, August 13, 2014 6:10 AM