-
Notifications
You must be signed in to change notification settings - Fork 512
Description
I'm struggling to figure out how to access certificates in the "Local Computer\Personal" store when using CertificateStores::FindAllAsync(CertificateQuery) and similar UWP APIs.
Example of certificates that I want to access:

These certificates are not inherited to the "Current User\Personal" store, due to an exception in the certificate inheritance rules. They therefore need to be explicitly accessed from LocalMachine instead of CurrentUser.
I've already tried to specify StoreName in the CertificateQuery argument. This works nicely for accessing certificates in e.g. the "Current User\Personal" store. However, there doesn't seem to any way to also specify StoreLocation as in the .Net X509Store(StoreName, StoreLocation) constructor.
Document Details
⚠ Do not edit this section. It is required for learn.microsoft.com ➟ GitHub issue linking.
- ID: 642ea678-d413-7aae-0be6-dd2184e2c134
- Version Independent ID: 3a67064e-ef1c-bafd-ab26-9f971d70273c
- Content: CertificateStores.FindAllAsync Method (Windows.Security.Cryptography.Certificates) - Windows UWP applications
- Content Source: winrt-api-build/xml/Windows.Security.Cryptography.Certificates/CertificateStores.xml
- Product: uwp
- Technology: winrt-reference
- GitHub Login: @alvinashcraft
- Microsoft Alias: aashcraft