On 2006.12.13 at 14:22:12 +0530, bsenthil wrote:

> Hi,
> 
> I want to create CA/Server certificate from library libssl.so. could you 
> please help me any code snippet / url..

You'll need libcrypto.so rather than libssl.so. All basic cryptographic
functions are in the libcrypto.

> I want to create certificate from my application function call().
> 
> Is there any API() for creating CA/Server certificate?

There is a lot of API. I don't think that there is high level API.
There are obvoisly functions to create X509 structure, fill it with
neccessary information (i.e. subject fields, public key etc), sign
it and write into supported formats.

You may look into code of openssl req command (file apps/req.c in
OpenSSL distribution) to see which libcrypto functions are called to
create certificate and sign it. 

You can also look into code of Tcl TLS extension (tls.sf.net) it handles
fewer cases than openssl itself, so code is smaller and simpilier to
understand.



> Thanks,
> Senthilkumar.
> ______________________________________________________________________
> OpenSSL Project                                 http://www.openssl.org
> User Support Mailing List                    openssl-users@openssl.org
> Automated List Manager                           [EMAIL PROTECTED]
> 
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    openssl-users@openssl.org
Automated List Manager                           [EMAIL PROTECTED]

Reply via email to