For this you are going to need to use the Openssl C api, specifically the X509.h stuff. There are several functions that deal just with certificates, and everything you need to create one is there. As for the Key you will need to use EVP_PKEY which should come from the EVP family of functions. Since you are on Windows, you won't have the man pages handy, but http://www.tin.org/bin/allman.cgi is a site that lists the man pages online. As a starting place look into X509_new() and EVP_PKEY_new(). As for what to add to each, you might have to do some digging because I have never created them from scratch before. The Openssl binaries will create a certificate and private key for you, so it may be worth it to look into the source of those parts.
Anyone one else who knows more feel free to chime in, I am still just a novice in this but I'm sharing what I can. It's no fun to have your question ignored, so I figured I would at least contribute what I knew. I hope this helps, and good luck! -Sam On Thu, Aug 19, 2010 at 7:34 AM, Raj <rajmo...@codework-solutions.com>wrote: > Hi All > Can anybody tell me how to create a Digital certificate and its key > from an application, > VC++ for Windows > > Thanks, > Raj > Rajmohan SK > -- Sam Jantz Software Engineer