Hello again Dr. Henson,
Once again thank u very much but I am still worried with the function which
u pointed to...
I have gone through the code of X509_REQ_set_pubkey( )....
As far as I understood the function, it stores the public key in DER fromat
as it uses the function i2d_PublicKey( ).
I need the public key to be stored in BER format... I need to find out some
way to store the public key in BER encoding...
I request u to help me further in this regard....
Regards
Suram
----- Original Message -----
From: Dr S N Henson <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Saturday, March 03, 2001 11:07 PM
Subject: Re: Doubt regarding BER encode(specific question)
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]
______________________________________________________________________
OpenSSL Project http://www.openssl.org
User Support Mailing List [EMAIL PROTECTED]
Automated List Manager [EMAIL PROTECTED]