Jean-Marc - 2019-03-07

Hello,
I intend to sign lots of CSR. I need them to look all similar, except the commonName attribute. That means that I want to replace organization, country, organizationalunits, ... by standardized ones if they come different in the CSR.
So I have created a certificate template, filled in all that stuff, except the commonName since I want it be imported from the CSR.
Unfortunately when I apply the template at signing time, all the fields are well replaced, but the commonName is also replaced by the 'empty' value from the template...
Is there any way to tell the template to not replace some of the fields in the CSR ?
Thank you.