Encryption and Decryptiong using Certificates
From: sandi (anonymous_at_discussions.microsoft.com)
Date: Fri, 16 Apr 2004 23:18:55 -0700
I Have many certificates in my server MY Store with the
private keys. All the clients will have certificates
without the private keys, only the public key.
Whenever a user wants to sign a document he will sign
from the server using his certificate. The server will be
always loged in as administrator. And security is
porvided by the physical access to the server.
First I export the public key from the certificate to
say, a file
CertFindCertificateInStore() Subject Name Str
Then I encrypt.This is another application
3.CertFindCertificateInStore() "Subject name "
6.CryptEncrypt(), an array of 16 bytes
I got it encrypted. Now I want to decrypt it using the
public key from the certificates. This another application
But Decryption fails with error 8009000D "Keys Does not
exit"..Pleeaseeeeeeeeeeeeeee help me....
I dont know wats happening...
Thanks and lots of love...