chandu wrote:
> 
> HI everybody,
> 
> I have a question regarding adding challenge-password attribute to a X509
> certificate request.  I guess I can do this by calling the function
> X509_ATTRIBUTE_create(int nid, int atrtype, void *value); ( is that right).
> If so can anyone please explain me what possible values can "atrtype" field
> have... If not please help me to find suitable function to add the
> challenge-password attribute...
> 

There is some attribute creation code which should make this easier. You
typically call:

X509_REQ_add1_attr_by_NID(req, NID_pkcs9_challengePassword,
MBSTRING_ASC, "some challenge password", -1);

If I recall you need OpenSSL 0.9.6 for this though.

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]

Reply via email to