Question : OpenSSL command line to OpenSSL API

Hello experts,
I am writing an application that makes use of the OpenSSL executable file.  I would like to move away from the OpenSSL command line into the OpenSSL API so that I can then compile the logic into my application negating the need to redistribute OpenSSL.exe.  The command lines that I am using currently are below.  

I would like someone to help guide me through the code as to how to accomplish these command line tasks in the OpenSSL API.

// Create a new CA
openssl req -new -keyout basedir\private\cakey.pem -out basedir \careq.pem
openssl ca -create_serial -out basedir \cacert.pem -days 356 -batch -keyfile basedir \private\cakey.pem -selfsign -extensions v3_ca -infiles basedir \careq.pem

// Create new certificate request and submit to CA for signing
openssl req config my.cnf -new -keyout newkey.pem -out newreq.pem
openssl ca -notext -out site123.crt -infiles newreq.pem

Thanks in advance for your help.

Answer : OpenSSL command line to OpenSSL API

I found this API reference, if that helps you out:
http://www.openssl.org/docs/ssl/ssl.html

From this article, they mention you should have a familiarity with C programming, so I would suggest a C Programming (or C++ or C# maybe) for the zone.
http://www.ibm.com/developerworks/linux/library/l-openssl.html
Random Solutions  
 
programming4us programming4us