How do I add a Client Certificate and Private Key to the Users Store in Windows with C++?

StackOverflow https://stackoverflow.com/questions/17819033

  •  04-06-2022
  •  | 
  •  

문제

Basically, the title: How do I add a Client Certificate and Private Key to the Users Store in Windows with C++?

I've found the function PFXImportCertStore which will let me load the cert and private key from a PKCS12 into a temporary cert store but I dont know how to save this store to the users store. The goal is to add a private key which other applications can access (for example, Outlook).

도움이 되었습니까?

해결책

I needed to call CertAddCertificateContextToStore to put it in the store that I wanted.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top