Red Hat Training

A Red Hat training course is available for Red Hat Enterprise Linux

26.9. Replacing the Web Server's and LDAP Server's Certificate

To replace the service certificates for the web server and LDAP server:
  1. Request a new certificate. You can do this using:
    • an external CA: generate a private key and certificate signing request (CSR). For example, using OpenSSL:
      $ openssl req -new -newkey rsa:2048 -days 365 -nodes -keyout new.key -out new.csr -subj '/CN=idmserver.idm.example.com,O=IDM.EXAMPLE.COM'
      Submit the CSR to the external CA. The process differs depending on the service to be used as the external CA.
  2. Replace the Apache web server's private key and certificate:
    [root@ipaserver ~]# ipa-server-certinstall -w --pin=password new.key new.crt
  3. Replace the LDAP server's private key and certificate:
    [root@ipaserver ~]# ipa-server-certinstall -d --pin=password new.key new.cert