How to create PKCS10 request to get web certificate ?

I need to do following 

1)      Generate the key pair (private + public)   
2)      Generate the PKCS10 request using public key
3)      Connect to Enrolment server and submit the PKCS10 request to get the
certificate.
4)      Put all Private key, User certificate and CA certificate together as
PKCS12 request and protect it with randomly generated password 
5)      Now convert PKCS12 request to PEM format.
All the above steps can be done using openssl binary, but the requirement is
that I need to do all this using openssl library ?
Can someone help me to figure out how to do this using openssl library and
what all API, should be used ?
Are there any sample code available that I can refer to ?
Thanks,
Mayank


Attachment: smime.p7s
Description: S/MIME cryptographic signature

Reply via email to