Problem issuing a certificate which just includes SAN/OtherName of type id-on-hardwareModuleName #694
-
Hi I'm trying to configure EJBCA to issue IDevID birth identities to our product at time of manufacture using the pkcs10enroll REST API. The specification that we need to comply is quite simple and states that:
The CSRs we generate include the entire SAN as an extension request. The problems I'm having differ depending on whether I'm using RA Web or the REST API
REST API (pkcs10enroll):
In the Certificate Profile I have:
I have also tried using a Custom Certificate Extension for the SAN but it doesn't make any difference to how RA Web or the REST API behave. Has anyone been successful in getting something similar to work ? Is there some critical configuration that I'm missing ? I'm particularly puzzled as to why the REST API behaves like this. I have seen similar posts and the suggestions have always been to use the extension override or custom certificate extension features. regards |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
In order to use "extension override" with this you need to process the message in a "client mode" fashion. That means pre-registering an end entity with say the desired subjectDN, but no SAN. Then you enroll against that end entity, and in this case the SAN from the CSR will not be tried to be processed. Last resort is to disable "end entity profile limitations" in system configuration, but that is not recommended as that disables policy enforcement on all end entity profiles in the system. So using "endentity" + "certificaterequest" is my recommendation. Cheers, |
Beta Was this translation helpful? Give feedback.
In order to use "extension override" with this you need to process the message in a "client mode" fashion. That means pre-registering an end entity with say the desired subjectDN, but no SAN. Then you enroll against that end entity, and in this case the SAN from the CSR will not be tried to be processed.
The issue here is that the "pkcs10enroll" end point parses the CSR in order to create an end entity, and the end entity profile doesn't have selectable HWModuleName. If this is called from a trusted RA (which I assume since "pkcs10enroll" requires a trusted called, you can use "endentity" + "certificaterequest" end points instead it should work.
Last resort is to disable "end entity profi…