public/private key pair and digital certificate
-
Hi everyone, I have CERT_CONTEXT with me. How do I get public key from a digital certificate as HCRYPTKEY to use with API like CryptEncrypt? (ie how to get HCRYPTKEY from CRYPT_BIT_BLOB) How do I do the same for my private key? (ie how to get HCRYPTKEY from my private key) Links to C++ examples / documentations are welcome Thanks in advance.
cheers Varghese Paul
-
Hi everyone, I have CERT_CONTEXT with me. How do I get public key from a digital certificate as HCRYPTKEY to use with API like CryptEncrypt? (ie how to get HCRYPTKEY from CRYPT_BIT_BLOB) How do I do the same for my private key? (ie how to get HCRYPTKEY from my private key) Links to C++ examples / documentations are welcome Thanks in advance.
cheers Varghese Paul
the public/private keys can be generated by using the function CryptGenKey http://msdn.microsoft.com/en-us/library/aa379941(VS.85).aspx[^] MSDN provide a lot of examples for the SECURITY section. For a better results from others, please explain your problem clearly, I mean, code snippet etc.. BIJU