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

  1. 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-signed

    If 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.

  2. Fix expired service certificates on the renewal server.

    1. Stop the IdM services:

      # ipactl stop
    2. Run the ipa-cert-fix command to reset the expiration date of expired service certificates in the IdM database:

      # ipa-cert-fix
    3. Issue new certificates and apply them to the IdM services:

      # ipa-certupdate
    4. Restart the IdM services to complete the renewal:

      # ipactl start
  3. 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.

    1. Generate a certificate-signing request (CSR) for the newly renewed CA:

      # ipa-cacert-manage renew --external-ca

      This creates a CSR file at /var/lib/ipa/ca.csr.

    2. Submit the CSR file to your external CA and receive the newly signed certificate and the external CA’s chain of trust.
    3. 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
  4. Propagate the new CA certificate to all IdM servers and clients. Run the ipa-certupdate on the renewal server first, then on all other replicas, and finally on all clients:

    # ipa-certupdate

    This step is critical to ensure all systems in the topology trust the new CA certificate.

Red Hat logoGithubredditYoutubeTwitter

学习

尝试、购买和销售

社区

关于红帽文档

通过我们的产品和服务,以及可以信赖的内容,帮助红帽用户创新并实现他们的目标。 了解我们当前的更新.

让开源更具包容性

红帽致力于替换我们的代码、文档和 Web 属性中存在问题的语言。欲了解更多详情,请参阅红帽博客.

關於紅帽

我们提供强化的解决方案,使企业能够更轻松地跨平台和环境(从核心数据中心到网络边缘)工作。

Theme

© 2026 Red Hat
返回顶部