Hi all,

I have a question regarding the adding of the Key usage attribute to the
PKCS10 certificate request.  I tried using the following code..

ikeyUsageAttr  =  X509v3_KU_DIGITAL_SIGNATURE;

  iRetVal = X509_REQ_add1_attr_by_NID(preq, NID_key_usage,V_ASN1_INTEGER,
&(ikeyUsageAttr), 4);

When I try to print the request using X509_REQ_print, it is not printing the
key usage attribute.  It is giving
"Unable to print the value of the attribute"

In X509_REQ_print ( ) function , there is no option to print the value of
attribute of  either type V_ASN1_INTEGER  or  V_ASN1_BIT_STRING....

My question is whether I am following the correct way to add the Key usage
attribute..  If not what is the correct way to add it.  If  Yes  What is the
way to check and print the value of the key usage attribute...

Any help regarding this is highly appreciated...

Regards
Suram




______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    [EMAIL PROTECTED]
Automated List Manager                           [EMAIL PROTECTED]

Reply via email to