Hi,
 
In order to generate a valid PKCS # 10 Certificate Request conforming to the rules of SET specifications, which attributes should be set additionally? (such as to have the certificate have "Key Usage" attribute?)
 
The template I used was only composed of the below:
 
  CK_ATTRIBUTE certTemplate[] = {
   {CKA_TOKEN, &isTok, 1},
   {CKA_PRIVATE, &False, 1},
   {CKA_LABEL, certLabel, sizeof(certLabel)},
   {CKA_SUBJECT_STR, subject, sizeof(subject)},
   {CKA_EXTRACTABLE, &True, 1},
   {CKA_DERIVE, &True, 1},
  };
 
Thank you in advance for your interest and help.

Regards.

Reply via email to