Affects Version/s: EJBCA 4.0.3
Fix Version/s: EJBCA 4.0.4
having unused fields in the EE profile make the UserData subjectDN field look like:
But empty fields are filtered out then issuing the certificate so the CertificateData subjectDN field is:
When looking for existing issued certificates when checking for uniqueness the SQL query for the subjectDN will be for the data from UserData, so nothing will be found.
Before checking for other issued certificates when checking for unique subjectDN and unique public key, the subjectDN must be filtered the same way as when issuing certificates.