Questions tagged [microsoft-key-storage-provider]
7 questions
1
vote
0 answers
Access keys for Local Machine from Microsoft KSP
The below powershell command correctly lists all the keys for my local machine store:
certutil -csp "Microsoft Software Key Storage Provider" -key
However, I am not able to do the same through C++ code using NCryptOpenStorageProvider and…

Amal Jesudas
- 43
- 7
1
vote
1 answer
CryptAcquireCertificatePrivateKey Error:0x80090016 with custom Key Storage Provider
I'm develoving a custom CNG Key Storage Provider. It works fine with some applications like Chrome, but a third party application uses the CryptAcquireCertificatePrivateKey method with the certificate context causing a 0x80090016 without invoking…

Rafael Membrives
- 614
- 5
- 14
0
votes
0 answers
Read certificates available in Windows keystore without password
I need to retrieve the list of certificates available in the windows keystore without the user having to enter his password in each certificate manager.
A simple example: when you want to sign a PDF document with Adobe Reader, Adobe Reader first…
0
votes
0 answers
CNG keyStore, MS Keystorage Provider Key expiration
"Hello, community! I have a couple of questions regarding the Microsoft key store provider. Firstly, does a key stored in the Microsoft key store provider expire automatically? I'm curious to know if there's a predefined expiration mechanism for…

Anup Deshpande
- 1
- 1
0
votes
0 answers
How to specify the key storage provider when importing a x509Certificate with private key
In .Net 5/6, I got a RsaCng key in memory, got a certificate back from CA, how can I specify to use the "Microsoft Key Storage Provider" when importing to the Windows certificate store? I currently have the below code and it resulted in the CSP…

lee23
- 409
- 1
- 3
- 10
0
votes
1 answer
How to link KSP DLL to Certificate
I want to sign HLKX files using a certificate for which the private key is not available on the local system.
I created a custom Key Storage Provider (basically a shell for testing purposes) based on the code sample for a KSP DLL in "Cryptographic…

Gunnar
- 38
- 6
0
votes
1 answer
Microsoft Key Storage Provider get keys
I am trying to get the details of keys in Microsoft Key Storage Provider.
For this I open the storage provider using the below API call:
NCryptOpenStorageProvider(&prov, MS_KEY_STORAGE_PROVIDER, 0);
Then I call NCryptEnumKeys in a while loop to get…

Amal Jesudas
- 43
- 7