diff --git a/ipalib/constants.py b/ipalib/constants.py index d4577d668..3bc042ede 100644 --- a/ipalib/constants.py +++ b/ipalib/constants.py @@ -306,6 +306,7 @@ IPA_CA_RECORD = "ipa-ca" IPA_CA_NICKNAME = 'caSigningCert cert-pki-ca' RENEWAL_CA_NAME = 'dogtag-ipa-ca-renew-agent' RENEWAL_REUSE_CA_NAME = 'dogtag-ipa-ca-renew-agent-reuse' +RA_AGENT_PROFILE = 'caServerCert' # How long dbus clients should wait for CA certificate RPCs [seconds] CA_DBUS_TIMEOUT = 120 diff --git a/ipaserver/install/cainstance.py b/ipaserver/install/cainstance.py index f9eea2e2c..c3f49ac85 100644 --- a/ipaserver/install/cainstance.py +++ b/ipaserver/install/cainstance.py @@ -1047,6 +1047,7 @@ class CAInstance(DogtagInstance): certmonger.start_tracking( certpath=(paths.RA_AGENT_PEM, paths.RA_AGENT_KEY), ca='dogtag-ipa-ca-renew-agent', + profile=ipalib.constants.RA_AGENT_PROFILE, pre_command='renew_ra_cert_pre', post_command='renew_ra_cert', storage='FILE') diff --git a/ipaserver/install/server/upgrade.py b/ipaserver/install/server/upgrade.py index f259092a5..a20a8ad3e 100644 --- a/ipaserver/install/server/upgrade.py +++ b/ipaserver/install/server/upgrade.py @@ -21,6 +21,7 @@ from augeas import Augeas import dns.exception from ipalib import api, x509 +from ipalib.constants import RA_AGENT_PROFILE from ipalib.install import certmonger, sysrestore import SSSDConfig import ipalib.util @@ -996,6 +997,7 @@ def certificate_renewal_update(ca, kra, ds, http): 'cert-file': paths.RA_AGENT_PEM, 'key-file': paths.RA_AGENT_KEY, 'ca-name': 'dogtag-ipa-ca-renew-agent', + 'template-profile': RA_AGENT_PROFILE, 'cert-presave-command': template % 'renew_ra_cert_pre', 'cert-postsave-command': template % 'renew_ra_cert', },