From 6c7f71caf333363f8b4c18b3229de1533c1ad6fc Mon Sep 17 00:00:00 2001 From: Jan Cholasta Date: Tue, 18 Nov 2014 14:01:59 +0000 Subject: [PATCH] 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 --- freeipa.spec.in | 4 ++-- install/certmonger/dogtag-ipa-ca-renew-agent-submit | 2 ++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/freeipa.spec.in b/freeipa.spec.in index be13e69255e7612f84aeca22105645b544cc50b5..e29f77de0db89035d15008c6be2da0ae7e96158a 100644 --- a/freeipa.spec.in +++ b/freeipa.spec.in @@ -140,7 +140,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 @@ -221,7 +221,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 e5ad9639b03b95e6e265214067a985f6c3ca0b2a..0a2cff148810e4800c02121afc68911c221d34d7 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() -- 2.1.0