I've recently starting configuring a CA with OpenSSL. The root CA requires intermediary CA certificates to have an OU field such that the intermediate CA's DN looks like OU=group
.
With that intermediate CA, I've defined the policy for CSRs it can sign as follows:
[ policy_match ]
organizationUnitName=match
The CSRs I'm attempting to sign have DNs like OU=group, OU=subgroup
, but the command openssl ca -in two_OUs.csr
spits out the error: The organizationalUnitName field needed to be the same in the
CA certificate (group) and the request (subgroup)
.
I've attempted to modify the policy in two ways:
[ policy_match ]
organizationUnitName=match
organizationUnitName=supplied
[ policy_match ]
0.organizationUnitName=match
1.organizationUnitName=supplied
The first succeeds, but does not enforce the requirement of having two OUs. The second fails, complaining of 0.organizationalUnitName:unknown object type in 'policy' configuration
Short of bypassing the ca
command all together in favor of the x509
command, how can I resolve this?