My current environmental situation:
1. on the client side I installing the certificate issued from a window server (ADCS) with a
provider type (Microsoft Enhanced Cryptographic Provider v1.0) and a PFX private key in the certificate
store (my store).
2. Make command to check: certutil -store my .
3. Make connection with my credential provider to KSP through the article: this article by question
Issue: KSP (Key Storage Provider) is not being loaded at logon via a Credential Provider.
I wonder if the problem is below:
- Are the certificate(my store) associated private key not the Microsoft Sample Key Storage Provider type? (current: Microsoft Enhanced Cryptographic Provider v1.0) I still do not know how to create a certificate, a private key with a provider named Microsoft Sample Key Storage Provider. Anyone know can just help me?
- In the ConstructAuthInfo(LPBYTE* ppbAuthInfo, ULONG *pulAuthInfoLen) function:
WCHAR szCardName [] = L ""; // no card name specified but you can put one if you want
WCHAR szContainerName [] = L "my_key_name";
WCHAR szReaderName [] = L "";
WCHAR szCspName [] = L "Microsoft Sample Key Storage Provider";
WCHAR szPin [] = L "11111111";
-> What does this my_key_name mean? and can it set a value L ""; Is it OK?
-> I do not use a hardware smart card, WCHAR szPin [] is an optional value?
Thanks in advance.