Chapter 24. Decommissioning a server that performs the CA renewal server and CRL publisher roles
You might have one server performing both the Certificate Authority (CA) renewal server role and the Certificate Revocation List (CRL) publisher role. If you need to take this server offline or decommission it, select and configure another CA server to perform these roles.
In this example, the host server.idm.example.com
, which fulfills the CA renewal server and CRL publisher roles, must be decommissioned. This procedure transfers the CA renewal server and CRL publisher roles to the host replica.idm.example.com
and removes server.idm.example.com
from the IdM environment.
You do not need to configure the same server to perform both CA renewal server and CRL publisher roles.
Prerequisites
- You have the IdM administrator credentials.
- You have the root password for the server you are decommissioning.
- You have at least two CA replicas in your IdM environment.
Procedure
Obtain the IdM administrator credentials:
kinit admin
[user@server ~]$ kinit admin Password for admin@IDM.EXAMPLE.COM:
Copy to Clipboard Copied! Toggle word wrap Toggle overflow Optional: If you are not sure which servers perform the CA renewal server and CRL publisher roles:
Display the current CA renewal server. You can run the following command from any IdM server:
ipa config-show | grep 'CA renewal'
[user@server ~]$ ipa config-show | grep 'CA renewal' IPA CA renewal master: server.idm.example.com
Copy to Clipboard Copied! Toggle word wrap Toggle overflow Test if a host is the current CRL publisher.
ipa-crlgen-manage status
[user@server ~]$ ipa-crlgen-manage status CRL generation: enabled Last CRL update: 2019-10-31 12:00:00 Last CRL Number: 6 The ipa-crlgen-manage command was successful
Copy to Clipboard Copied! Toggle word wrap Toggle overflow A CA server that does not generate the CRL displays
CRL generation: disabled
.ipa-crlgen-manage status
[user@replica ~]$ ipa-crlgen-manage status CRL generation: disabled The ipa-crlgen-manage command was successful
Copy to Clipboard Copied! Toggle word wrap Toggle overflow Continue entering this command on CA servers until you find the CRL publisher server.
Display all other CA servers you can promote to fulfill these roles. This environment has two CA servers.
Copy to Clipboard Copied! Toggle word wrap Toggle overflow
Set
replica.idm.example.com
as the CA renewal server.ipa config-mod --ca-renewal-master-server replica.idm.example.com
[user@server ~]$ ipa config-mod --ca-renewal-master-server replica.idm.example.com
Copy to Clipboard Copied! Toggle word wrap Toggle overflow On
server.idm.example.com
:Disable the certificate updater task:
pki-server ca-config-set ca.certStatusUpdateInterval 0
[root@server ~]# pki-server ca-config-set ca.certStatusUpdateInterval 0
Copy to Clipboard Copied! Toggle word wrap Toggle overflow Restart IdM services:
ipactl restart
[root@server ~]# ipactl restart
Copy to Clipboard Copied! Toggle word wrap Toggle overflow
On
replica.idm.example.com
:Enable the certificate updater task:
pki-server ca-config-unset ca.certStatusUpdateInterval
[root@replica ~]# pki-server ca-config-unset ca.certStatusUpdateInterval
Copy to Clipboard Copied! Toggle word wrap Toggle overflow Restart IdM services:
ipactl restart
[root@replica ~]# ipactl restart
Copy to Clipboard Copied! Toggle word wrap Toggle overflow
On
server.idm.example.com
, stop generating the CRL.Copy to Clipboard Copied! Toggle word wrap Toggle overflow On
replica.idm.example.com
, start generating the CRL.Copy to Clipboard Copied! Toggle word wrap Toggle overflow Stop IdM services on
server.idm.example.com
:ipactl stop
[root@server ~]# ipactl stop
Copy to Clipboard Copied! Toggle word wrap Toggle overflow On
replica.idm.example.com
, deleteserver.idm.example.com
from the IdM environment.ipa server-del server.idm.example.com
[user@replica ~]$ ipa server-del server.idm.example.com
Copy to Clipboard Copied! Toggle word wrap Toggle overflow On
server.idm.example.com
, use theipa-server-install --uninstall
command as the root account:ipa-server-install --uninstall
[root@server ~]# ipa-server-install --uninstall ... Are you sure you want to continue with the uninstall procedure? [no]: yes
Copy to Clipboard Copied! Toggle word wrap Toggle overflow
Verification
Display the current CA renewal server.
ipa config-show | grep 'CA renewal'
[user@replica ~]$ ipa config-show | grep 'CA renewal' IPA CA renewal master: replica.idm.example.com
Copy to Clipboard Copied! Toggle word wrap Toggle overflow Confirm that the
replica.idm.example.com
host is generating the CRL.ipa-crlgen-manage status
[user@replica ~]$ ipa-crlgen-manage status CRL generation: enabled Last CRL update: 2019-10-31 12:10:00 Last CRL Number: 7 The ipa-crlgen-manage command was successful
Copy to Clipboard Copied! Toggle word wrap Toggle overflow