Hello @Fredrik Orderud (GE) ,
Welcome to Microsoft Q&A!
Currently, CertificateStores
searches for the current user's certificate by default. To use this API, you also need to define Capabilities sharedUserCertificates
. It is currently impossible to find the certificate of the local computer.
The sharedUserCertificates capability enables an app to add and access software and hardware-based certificates in the Shared User store, such as certificates stored on a smart card. This capability is typically used for financial or enterprise apps that require a smart card for authentication.
I'd suggest you submit a feature request about this feature in the Feedback Hub.
You could find the Feedback Hub in the Start Menu.
Please select Developer Platform->API Feedback as the category when you submit your request.
The related team will check the request.
Thank you.
Junjie
If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.