There can be any number of clones, but there can only be a single configured master. For DRMs and TKSs, there is no configuration difference between masters and clones, but CAs and OCSPs do have some configuration differences. This means that when a master is taken offline — because of a failure or for maintenance or to change the function of the subsystem in the PKI — then the existing master must be reconfigured to be a clone, and one of the clones promoted to be the master.
- Stop the master CA if it is still running.
- Open the existing master CA configuration directory:
cd /var/lib/pki-ca/conf
- Edit the
CS.cfgfile for the master, and change the CRL and maintenance thread settings so that it is set as a clone:- Disable control of the database maintenance thread:
ca.certStatusUpdateInterval=0
- Disable monitoring database replication changes:
ca.listenToCloneModifications=false
- Disable maintenance of the CRL cache:
ca.crl.
IssuingPointId.enableCRLCache=false - Disable CRL generation:
ca.crl.
IssuingPointId.enableCRLUpdates=false - Set the CA to redirect CRL requests to the new master:
master.ca.agent.host=
new_master_hostnamemaster.ca.agent.port=new_master_port
- Stop the cloned CA server.
service
instance_namestop - Open the cloned CA's configuration directory.
cd /etc/
instance_name - Edit the
CS.cfgfile to configure the clone as the new master.- Delete each line which begins with the
ca.crl.prefix. - Copy each line beginning with the
ca.crl.prefix from the former master CACS.cfgfile into the cloned CA'sCS.cfgfile. - Enable control of the database maintenance thread; the default value for a master CA is
600.ca.certStatusUpdateInterval=600
- Enable monitoring database replication:
ca.listenToCloneModifications=true
- Enable maintenance of the CRL cache:
ca.crl.
IssuingPointId.enableCRLCache=true - Enable CRL generation:
ca.crl.
IssuingPointId.enableCRLUpdates=true - Disable the redirect settings for CRL generation requests:
master.ca.agent.host=
hostnamemaster.ca.agent.port=port number
- Start the new master CA server.
service
instance_namestart