22.3. Recovering from an expired IdM CA certificate
This is the most critical failure. If the IdM CA certificate itself expires, no certificates can be validated or issued. The recovery process involves renewing the CA certificate as self-signed to restore system functionality, and then optionally re-signing it with an external CA if that was your original configuration.
Procedure
On the renewal server, renew the CA certificate as self-signed. This command uses the existing private key to generate a new CA certificate with a renewed validity period:
# ipa-cacert-manage renew --self-signedIf your certificate is close to its expiry date and renewing it did not push the expiry date forward, see the When IPA’s CA certificate is close to expiry date, renewing it doesn’t push forward the expiry date solution.
Fix expired service certificates on the renewal server.
Stop the IdM services:
# ipactl stopRun the
ipa-cert-fixcommand to reset the expiration date of expired service certificates in the IdM database:# ipa-cert-fixIssue new certificates and apply them to the IdM services:
# ipa-certupdateRestart the IdM services to complete the renewal:
# ipactl start
If your original setup used an externally-signed CA, you must now get the new CA certificate re-signed by your external authority. If you use a self-signed CA, skip this step.
Generate a certificate-signing request (CSR) for the newly renewed CA:
# ipa-cacert-manage renew --external-caThis creates a CSR file at
/var/lib/ipa/ca.csr.- Submit the CSR file to your external CA and receive the newly signed certificate and the external CA’s chain of trust.
Install the newly signed certificate back into IdM:
# ipa-cacert-manage renew --external-cert-file /path/to/new-ca.pem --external-cert-file /path/to/external-chain.pem
Propagate the new CA certificate to all IdM servers and clients. Run the
ipa-certupdateon the renewal server first, then on all other replicas, and finally on all clients:# ipa-certupdateThis step is critical to ensure all systems in the topology trust the new CA certificate.