Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Access certificates in "Local Computer" store from C++/UWP #13

Open
forderud opened this issue Sep 20, 2022 · 1 comment
Open

Access certificates in "Local Computer" store from C++/UWP #13

forderud opened this issue Sep 20, 2022 · 1 comment
Labels
enhancement New feature or request

Comments

@forderud
Copy link
Owner

forderud commented Sep 20, 2022

Associated Microsoft doc. issue: MicrosoftDocs/winrt-api#2288

The current C++ & C# samples projects are only able to utilize client certificates stored in the Current User\Personal store. This is fine for end-user authentication purposes, but not so good for machine/computer authentication.

Task: Figure out how to use client certificates stored in the Local Computer\Personal store as already done by Intune:
image

Associated doc:

@forderud forderud changed the title Figure out how to access "Local Computer" certificates Figure out how to access certificates in "Local Computer" store Sep 20, 2022
@forderud forderud changed the title Figure out how to access certificates in "Local Computer" store Figure out how to access certificates in "Local Computer" store from C++ Sep 20, 2022
@forderud forderud changed the title Figure out how to access certificates in "Local Computer" store from C++ Access certificates in "Local Computer" store from C++ Sep 20, 2022
@forderud forderud changed the title Access certificates in "Local Computer" store from C++ Access certificates in "Local Computer" store from C++/UWP Sep 23, 2022
@forderud forderud added the enhancement New feature or request label Sep 25, 2022
@forderud
Copy link
Owner Author

forderud commented Sep 26, 2022

The problem might be worked around by instead storing the certificate under Local Computer\Trusted People. It can then be retrieved using X509Store(StoreName.TrustedPeople, StoreLocation.CurrentUser) in C# and query.StoreName(L"TrustedPeople") in C++.

However, I've not been able to utilize certificates stored in "Trusted People" for a mTLS handshake yet. Don't understand why it doesn't work..

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant