On Mon, Oct 19, 2020 at 06:52:20AM -0000, Krzysztof O via
FreeIPA-users wrote:
Hello,
I'd like to ask of is there any workaround for issuing
certificates that will have Common Name longer that 64 characters?
For FREEIPA version less than 4.8.0 which is designated for RHEL
8, when we will have to stay with current version of RHEL 7.
Regards, Krzysztof
Hi Krzysztof,
X.509 imposes the limit of 64 characters in the Common Name
attribute. There is no workaround to exceed this limit. But
assuming this is a host or service certificate bearing DNS names,
you can work around it another way:
Add a principal alias to the host/service entry via `ipa
{host,service}-add-principal command. The principal alias should
have the same service type as the main object, i.e.
"host/$HOSTNAME" for a host princpal, "HTTP/$HOSTNAME" for a HTTP
service principal, etc. The hostname in the principal alias should
be shorter than 64 characters.
Create a CSR with the shorter hostname in the CN attribute, and the
longer hostname in the SAN DNS name. Then you will be able to
request the certificate.
The proper solution would be to support issuing certificates with
empty subject DN. I thought I previously filed a ticket for this,
but I can't find it now.
Cheers,
Fraser