Cannot set HttpBaseProtocolFilter.AllowUI to true on Windows 10 Mobile

1

I have a UWP app that's using client a certificate for SSL authentication. The certificate is stored in user store, the app is declaring "Shared User Certificates" capability in the manifest, I can see the certificate in collection returned by CertificateStores.FindAllAsync. The app works fine on Windows 10 Desktop -- I can set HttpBaseProtocolFilter.AllowUI = true and the app shows a confirmation dialog before the private key is used.

However, when I run the same exact code on Windows 10 Mobile, the property assignment throws a System.Exception: "Element not found. (Exception from HRESULT: 0x80070490)".

Am I doing something wrong? The code is running on UI thread. I guess the phone does not have the certificate UI built in. I can only use a certificate stored in the app's own certificate store (does not require that UI confirmation), but not user store.

ssl
win-universal-app
windows-10-mobile
winrt-httpclient
asked on Stack Overflow May 9, 2016 by Tomas Karban • edited May 9, 2016 by Tomas Karban

0 Answers

Nobody has answered this question yet.


User contributions licensed under CC BY-SA 3.0