I'm trying to build a basic uwp app that is capable of searching and relocating certificates.
When I invoke
var all = await CertificateStores.FindAllAsync();
var z = all.Count;// z = 0
z is always 0. Although I think that it should return all the certificates on the computer that are yet not expired (docs)
I already added following capabilities to the app manifest:
<rescap:Capability Name="runFullTrust"/>
<uap:Capability Name="sharedUserCertificates" />
from the namespaces xmlns:uap="http://schemas.microsoft.com/appx/manifest/uap/windows10"
and xmlns:rescap="http://schemas.microsoft.com/appx/manifest/foundation/windows10/restrictedcapabilities"
What am I missing?