Pro grammatically importing digital certificate which only contains a public key
-
I am creating an email client which needs to supports S/MIME . For this purpose I am using IP*Works Library. (IP*Works "SPOP" C++ Class for receiving the mails with S/MIME (Digitally signed mails.) After receiving the digitally signed mail we needs to store the digital certificate of the sender to windows certification store just like outlook express (When a digitally signed mail is received by outlook express it stores the attached certificated in the windows certificate store and attached the certificate with public key to windows address book.) Using IP Works I am able to get the full text of the certificate send with the digitally signed mail. but the certificate has only key public key (as i am the receiver of the mail). Could someone suggest some API for storing the certificate with public key to windows certification store? I has tried searching windows Crypto API but can't find any information regarding storing certificate with public key to windows certification store. Any help would be appreciated.
Sudhir Mangla http://Programmerworld.net AND http://DevelopersVoice.com (Free books , articles , Source Code and Programming Tools and Utilities)