Bug 1559598

Summary: [RFE] add a pkispawn option flag to allow CSR DN encoding match the CS configuration
Product: Red Hat Enterprise Linux 8 Reporter: Marc Sauton <msauton>
Component: pki-coreAssignee: Endi Sukma Dewata <edewata>
Status: CLOSED CURRENTRELEASE QA Contact: Asha Akkiangady <aakkiang>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 8.3CC: afarley, amitkuma, cfu, cpelland, dchen, edewata, mharmsen, msauton, rhcs-maint, tscherf
Target Milestone: rcKeywords: FutureFeature
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-10-08 06:01:33 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Comment 2 Christina Fu 2018-03-23 02:19:56 UTC
Looks like the following are requested by the customer in addition to what's addressed in https://bugzilla.redhat.com/show_bug.cgi?id=1471935#c17

1.
Customer:
"
...
Something else that would be nice to have is a configuration option that would allow certificate issuance to fail if the encoding type in the CSR does not match the encoding type specified in the RHCS configuration. This would need to be something that can be turned on/off though.
"
my interpretation:
A constraint that enforces the encoding in the CSR.

2.
Customer:
"
You have RHCS configured to override the CSR encoding, then there is another RHCS config option that specifies what to do if the CSR encoding does not match the RHCS configured override encoding. So if a UTF8 CSR is submitted but RHCS is configured to override this with Printable String you could have RHCS just stop and not attempt to move forward with certificate issuance if this new config option was set a specific way (maybe true or false). Then if the new config option was set the opposite way RHCS would change the encoding to Printable String and proceed with certificate issuance. That's the idea I had, not sure if it makes sense.
"
My interpretation:
An "override" flag to the constraint to either throw error or just override with  CA's own encoding.

3.
Also from https://bugzilla.redhat.com/show_bug.cgi?id=1471935#c20:
"
The problem is the customer cannot control how the subordinate CAs are encoding the subject DN in certificate request in recent deployments (blocking) when a third party CA above those subordinates CAs has a different subject DN encoding.
The configuration workaround only works for the existing RHCS internal certs.
"
(Marc, please provide customer's exact wording...)
My interpretation:
new pkispawn configuration param to specify encoding format of the CSRs we genedrate during installation.