Skip to content

How to access certificates in the "Local Computer\Personal" store? #2288

@forderud

Description

@forderud

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:
image
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.

Metadata

Metadata

Assignees

Labels

Pri2Topic is in the second 25% of page views for the repo.uwp/prodTopic product is UWP-related.winrt-reference/techTopic technology is WinRT-related.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions