summaryrefslogtreecommitdiffstats
path: root/ipaclient
diff options
context:
space:
mode:
authorFraser Tweedale <ftweedal@redhat.com>2018-11-30 21:53:21 +1100
committerFlorence Blanc-Renaud <flo@redhat.com>2018-12-03 10:32:36 +0100
commit8a835daf478195e00ed04c206c24c09afdfd927f (patch)
tree755df201567ce9d50de6e6d32dfb1fadc0d64d23 /ipaclient
parent2616795b3bc91001dea1f1c0e48a73b8bed52343 (diff)
downloadfreeipa-8a835daf478195e00ed04c206c24c09afdfd927f.tar.gz
freeipa-8a835daf478195e00ed04c206c24c09afdfd927f.tar.xz
freeipa-8a835daf478195e00ed04c206c24c09afdfd927f.zip
certupdate: add commentary about certmonger behaviour
It is not obvious why we "renew" (reuse only) the IPA CA certificate in ipa-certupdate. Add some commentary to explain this behaviour. Related: https://pagure.io/freeipa/issue/7751 See also: https://github.com/freeipa/freeipa/pull/2576#issuecomment-442220840 Reviewed-By: Alexander Bokovoy <abokovoy@redhat.com>
Diffstat (limited to 'ipaclient')
-rw-r--r--ipaclient/install/ipa_certupdate.py11
1 files changed, 11 insertions, 0 deletions
diff --git a/ipaclient/install/ipa_certupdate.py b/ipaclient/install/ipa_certupdate.py
index c4aee1309..6ac136bba 100644
--- a/ipaclient/install/ipa_certupdate.py
+++ b/ipaclient/install/ipa_certupdate.py
@@ -162,6 +162,17 @@ def update_server(certs):
if request_id is not None:
timeout = api.env.startup_timeout + 60
+ # The dogtag-ipa-ca-renew-agent-reuse Certmonger CA never
+ # actually renews the certificate; it only pulls it from the
+ # ca_renewal LDAP cert store.
+ #
+ # Why is this needed? If the CA cert gets renewed long
+ # before its notAfter (expiry) date (e.g. to switch from
+ # self-signed to external, or to switch to new external CA),
+ # then the other (i.e. not caRenewalMaster) CA replicas will
+ # not promptly pick up the new CA cert. So we make
+ # ipa-certupdate always check for an updated CA cert.
+ #
logger.debug("resubmitting certmonger request '%s'", request_id)
certmonger.resubmit_request(
request_id, ca='dogtag-ipa-ca-renew-agent-reuse', profile='')