I need to add extra fields in the CSR, like keyusage, regestrationID etc.I am using java IBM-sdk60. I’ve gone through x500 name API’s and could not find any solution. Help on API’s would be appreciated.
Thanks in advance
I need to add extra fields in the CSR, like keyusage, regestrationID etc.I am
Share
The standard way to include additional information in a CSR (PKCS#10) request is by adding
Attributes. According to the PKCS#10 standard:An attribute is an OID and a value whose meaning depends on the OID
Actually PKCS#9 defines 3 attributes:
The one you are looking for is Extension request :
This code template (not tested) may give you some hints on how include this attribute
Please note that unless the CA explicitly announces this PKCS#10 attribute is supported it will be ignored during the certificate generation.