Create an SSL CA Certificate with a unique serial number during IPA server installation
During the default install of IPA-4.11.0-10 on Alma 9.4, the IPA installer creates a CA Certificate for use signing everything. This CA has a serial of "1", which is not unique. Certificate serial numbers should be unique
the serial number of the CA Cert will always be 1
the serial number of the CA Cert should never be 1.
ipa-server-4.11.0-10.el9_4.x86_64 AlmaLinux release 9.4 (Seafoam Ocelot) kernel: 5.14.0-427.18.1.el9_4.x86_64
This causes any sane browser to throw an error: https://support.mozilla.org/en-US/kb/Certificate-contains-the-same-serial-number-as-another-certificate#firefox:win10:fx126
This is kinda basic stuff. just use the date as the serial number. Unix time, or concatenate YYYYMMDDhhmmss, or something similar.
Hi @pgreening According to RFC 5280, the serial number MUST be unique for each certificate issued by a given CA, but it doesn't means that it must be unique overall.
MUST be unique for each certificate issued by a given CA
The firefox issue you mention would happen if you see 2 certificates issued by the same CA and with the same serial number, but that are different. In your case, maybe you did a first installation of IPA with self-signed CA, imported the CA, then uninstalled and re-installed with the same parameters, which would result in the creation of another CA with the same subject and same serial 1 but a different key.
If you really want to avoid serial number = 1 you can install IPA with random serial numbers: ipa-server-install --random-serial-numbers
Metadata Update from @frenaud: - Issue close_status updated to: worksforme - Issue status updated to: Closed (was: Open)