chandu wrote:
>
> Thank u Dr. Henson for the reply...
>
> My specific question is as follows...
>
> I want to set the public key in the certificate request (X509_REQ)
> structure. The draft for SCEP says that the public key has to be encoded to
> BER form and set it in the request...
>
> Can u help me in solving this puzzle of BER encoding and setting it to the
> request...
>
> If u can provide me with small piece of code to do the above task I will be
> very much greatful to u...
>
Well there's some code in the apps/req.c application in the function
make_REQ(). Setting the public key in a PKCS#10 request is done with the
function: X509_REQ_set_pubkey().
Steve.
--
Dr Stephen N. Henson. http://www.drh-consultancy.demon.co.uk/
Personal Email: [EMAIL PROTECTED]
Senior crypto engineer, Celo Communications: http://www.celocom.com/
Core developer of the OpenSSL project: http://www.openssl.org/
Business Email: [EMAIL PROTECTED] PGP key: via homepage.
______________________________________________________________________
OpenSSL Project http://www.openssl.org
User Support Mailing List [EMAIL PROTECTED]
Automated List Manager [EMAIL PROTECTED]