summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJan Cholasta <jcholast@redhat.com>2014-11-18 14:01:59 +0000
committerJan Cholasta <jcholast@redhat.com>2014-11-19 14:25:26 +0000
commit52b141ca6a257b8f12d9ad2ade812ec1bfebf0d7 (patch)
tree370ff8e0f28a77a9ee4681c5b1e801782913baee
parent310e46452c41223afa0b1b318c503574567df105 (diff)
downloadfreeipa-52b141ca6a257b8f12d9ad2ade812ec1bfebf0d7.tar.gz
freeipa-52b141ca6a257b8f12d9ad2ade812ec1bfebf0d7.tar.xz
freeipa-52b141ca6a257b8f12d9ad2ade812ec1bfebf0d7.zip
Fix wrong expiration date on renewed IPA CA certificates
The expiration date was always set to the expiration date of the original certificate. https://fedorahosted.org/freeipa/ticket/4717 Reviewed-By: David Kupka <dkupka@redhat.com>
-rw-r--r--freeipa.spec.in4
-rwxr-xr-xinstall/certmonger/dogtag-ipa-ca-renew-agent-submit2
2 files changed, 4 insertions, 2 deletions
diff --git a/freeipa.spec.in b/freeipa.spec.in
index 2856048f8..703ef9e19 100644
--- a/freeipa.spec.in
+++ b/freeipa.spec.in
@@ -142,7 +142,7 @@ Requires: python-dns >= 1.11.1
Requires: zip
Requires: policycoreutils >= 2.1.12-5
Requires: tar
-Requires(pre): certmonger >= 0.75.13
+Requires(pre): certmonger >= 0.76.8
Requires(pre): 389-ds-base >= 1.3.3.5
Requires: fontawesome-fonts
Requires: open-sans-fonts
@@ -229,7 +229,7 @@ Requires: wget
Requires: libcurl >= 7.21.7-2
Requires: xmlrpc-c >= 1.27.4
Requires: sssd >= 1.12.2
-Requires: certmonger >= 0.75.6
+Requires: certmonger >= 0.76.8
Requires: nss-tools
Requires: bind-utils
Requires: oddjob-mkhomedir
diff --git a/install/certmonger/dogtag-ipa-ca-renew-agent-submit b/install/certmonger/dogtag-ipa-ca-renew-agent-submit
index e5ad9639b..0a2cff148 100755
--- a/install/certmonger/dogtag-ipa-ca-renew-agent-submit
+++ b/install/certmonger/dogtag-ipa-ca-renew-agent-submit
@@ -146,6 +146,8 @@ def request_cert():
path = paths.DOGTAG_IPA_RENEW_AGENT_SUBMIT
args = [path] + sys.argv[1:]
+ if os.environ.get('CERTMONGER_CA_PROFILE') == 'caCACert':
+ args += ['-O', 'bypassCAnotafter=true']
stdout, stderr, rc = ipautil.run(args, raiseonerr=False, env=os.environ)
sys.stderr.write(stderr)
sys.stderr.flush()