RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1308854 - ipa-cacert-manage renew failed with validity out of range
Summary: ipa-cacert-manage renew failed with validity out of range
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: pki-core
Version: 7.2
Hardware: Unspecified
OS: Unspecified
high
medium
Target Milestone: rc
: ---
Assignee: Matthew Harmsen
QA Contact: Asha Akkiangady
URL:
Whiteboard:
Depends On: 1277691 1310200
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-02-16 09:45 UTC by Marcel Kolaja
Modified: 2016-05-12 09:57 UTC (History)
15 users (show)

Fixed In Version: pki-core-10.2.5-7.el7_2
Doc Type: Bug Fix
Doc Text:
The certificate validity was calculated incorrectly when a daylight saving time change occurred in the validity period. Consequently, the "ipa-cacert-manage renew" command failed with a validity error. With this update, the CA Validity Default has been modified to use Calendar API, which calculates the certificate validity range consistently with the Validity Constraint and Validity Default. As a result, a CA certificate is successfully renewed in this scenario.
Clone Of: 1277691
Environment:
Last Closed: 2016-05-12 09:57:13 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2016:1042 0 normal SHIPPED_LIVE pki-core bug fix and enhancement update 2016-05-12 13:53:27 UTC

Description Marcel Kolaja 2016-02-16 09:45:21 UTC
This bug has been copied from bug #1277691 and has been proposed
to be backported to 7.2 z-stream (EUS).

Comment 4 Matthew Harmsen 2016-02-17 18:36:17 UTC
Pushed to DOGTAG_10_2_5_RHEL_BRANCH:

commit 05ee3265165f93b357ed17b47fe3f62f9b67ae8b
Author: Endi S. Dewata <edewata>
Date:   Sun Dec 20 21:46:56 2015 +0100

    Fixed mismatching certificate validity calculation.
    
    The CAValidityDefault has been modified to use Calendar API to
    calculate the certificate validity range to be consistent with
    the ValidityConstraint and ValidityDefault.
    
    https://fedorahosted.org/pki/ticket/1682

Comment 6 Xiyang Dong 2016-03-18 13:26:14 UTC
According to https://bugzilla.redhat.com/show_bug.cgi?id=1277691#c15,verified on pki-ca-10.2.5-7.el7_2

[root@auto-hv-02-guest10 ~]# date +%Y%m%d -s "20151102"
20151102
[root@auto-hv-02-guest10 ~]# ipa-server-install --setup-dns --forwarder=$DNSFORWARD --hostname=$(hostname) -r $RELM -n $DOMAIN -p $ADMINPW -a $ADMINPW -U

.
.
.
Setup complete

Next steps:
	1. You must make sure these network ports are open:
		TCP Ports:
		  * 80, 443: HTTP/HTTPS
		  * 389, 636: LDAP/LDAPS
		  * 88, 464: kerberos
		  * 53: bind
		UDP Ports:
		  * 88, 464: kerberos
		  * 53: bind
		  * 123: ntp

	2. You can now obtain a kerberos ticket using the command: 'kinit admin'
	   This ticket will allow you to use the IPA tools (e.g., ipa user-add)
	   and the web user interface.

Be sure to back up the CA certificates stored in /root/cacert.p12
These files are required to create replicas. The password for these
files is the Directory Manager password

[root@auto-hv-02-guest10 ~]# pki cert-find | grep "CN=Certificate Authority" -A 8
  Subject DN: CN=Certificate Authority,O=TESTRELM.TEST
  Status: VALID
  Type: X.509 version 3
  Key Algorithm: PKCS #1 RSA with 2048-bit key
  Not Valid Before: Mon Nov 02 00:02:43 EST 2015
  Not Valid After: Fri Nov 02 00:02:43 EDT 2035
  Issued On: Mon Nov 02 00:02:43 EST 2015
  Issued By: system

[root@auto-hv-02-guest10 ~]# db_pw="Secret123"
[root@auto-hv-02-guest10 ~]# pki -c $db_pw client-init --force
------------------
Client initialized
------------------
[root@auto-hv-02-guest10 ~]# pki -c $db_pw client-cert-request "cn=Certificate Authority" --profile caCACert
-----------------------------
Submitted certificate request
-----------------------------
  Request ID: 11
  Type: enrollment
  Request Status: pending
  Operation Result: success

Comment 8 errata-xmlrpc 2016-05-12 09:57:13 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://rhn.redhat.com/errata/RHBA-2016-1042.html


Note You need to log in before you can comment on or make changes to this bug.