Note: This bug is displayed in read-only format because
the product is no longer active in Red Hat Bugzilla.
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.
Description of problem:
When IPA server's externally signed CA cert is about to expire, I'd expect to see a message in /var/log/messages. I walked the server's time slowly from 4 weeks out to the expiration time an never saw a message. All I saw was getcert change:
[root@rhel7-9 log]# getcert list -i 20141216222410
Number of certificates and requests being tracked: 8.
Request ID '20141216222410':
status: MONITORING
ca-error: Updated certificate not available
stuck: no
key pair storage: type=NSSDB,location='/etc/pki/pki-tomcat/alias',nickname='caSigningCert cert-pki-ca',token='NSS Certificate DB',pin='285787707402'
certificate: type=NSSDB,location='/etc/pki/pki-tomcat/alias',nickname='caSigningCert cert-pki-ca',token='NSS Certificate DB'
CA: dogtag-ipa-ca-renew-agent
issuer: CN=Primary Fake CA,O=fakerealm1
subject: CN=Certificate Authority,O=EXAMPLE.COM
expires: 2019-12-16 22:21:55 UTC
key usage: digitalSignature,nonRepudiation,keyCertSign
pre-save command:
post-save command:
track: yes
auto-renew: yes
Version-Release number of selected component (if applicable):
ipa-server-4.1.0-13.el7.x86_64
How reproducible:
always
Steps to Reproduce:
1. Start IPA server install requiring externally signed CA:
ipa-server-install --setup-dns --forwarder=192.168.122.1 -r EXAMPLE.TEST -a Secret123 -p Secret123 --external-ca -U
2. Setup Fake external CA for signing
SERNUM=$RANDOM
SERNUM=$(( SERNUM += 1 ))
echo -e "y\n10\ny\n" | \
certutil -S -d . \
-n RootCA \
-s "CN=MyRootCA, O=fakerealm1" \
-x \
-t "CTu,CTu,CTu" \
-g 2048 \
-m $SERNUM\
-v 60 \
-z /etc/group \
-2 \
--keyUsage certSigning \
--nsCertType sslCA,smimeCA,objectSigningCA \
-f mypass1
3. Sign IPA CSR and export fake CA cert
SERNUM=$(( SERNUM += 1 ))
echo -e "y\n10\ny\n" | \
certutil -C -d . \
-c RootCA \
-m $SERNUM \
-v 60 \
-2 \
--keyUsage digitalSignature,nonRepudiation,certSigning \
--nsCertType sslCA,smimeCA,objectSigningCA \
-i /root/ipa.csr \
-o /root/ipa.crt \
-f mypass1 \
-a
certutil -L -d . -n "RootCA" -a >> /root/ipacacert.asc
4. Finish IPA install
cd /root
ipa-server-install --setup-dns --forwarder=192.168.122.1 \
-r EXAMPLE.TEST -a Secret123 -p Secret123 \
--external-cert-file=/root/ipa.crt \
--external-cert-file=/root/ipacacert.asc -U
5. Walk time forward with date command while making sure certs expire
date <soonest_expiration_minus_4_weeks>
getcert list | egrep "status|expires|Request|subject|ca-error"
6. When you get within 4 weeks of CA expiring, check /var/log/messages for message
grep "IPA CA certificate is about to expire, use ipa-cacert-manage to renew it" /var/log/messages
Actual results:
no warning seen in log
Expected results:
Should see:
"IPA CA certificate is about to expire, use ipa-cacert-manage to renew it"
Additional info:
Verified.
Version ::
ipa-server-4.1.0-15.el7.x86_64
Results ::
I installed with external-ca and then walked time forward until it expired.
[root@vm1 ~]# g
Request ID '20150114215735':
status: SUBMITTING
subject: CN=CA Audit,O=EXAMPLE.TEST
expires: 2020-01-14 21:56:16 UTC
Request ID '20150114215736':
status: SUBMITTING
subject: CN=OCSP Subsystem,O=EXAMPLE.TEST
expires: 2020-01-14 21:56:16 UTC
Request ID '20150114215737':
status: SUBMITTING
subject: CN=CA Subsystem,O=EXAMPLE.TEST
expires: 2020-01-14 21:56:16 UTC
Request ID '20150114215738':
status: MONITORING
ca-error: Updated certificate not available
subject: CN=Certificate Authority,O=EXAMPLE.TEST
expires: 2020-01-14 21:56:16 UTC
Request ID '20150114215739':
status: SUBMITTING
subject: CN=IPA RA,O=EXAMPLE.TEST
expires: 2020-01-14 21:56:16 UTC
Request ID '20150114215740':
status: MONITORING
subject: CN=vm1.example.test,O=EXAMPLE.TEST
expires: 2020-01-14 21:56:16 UTC
Request ID '20150114215741':
status: MONITORING
subject: CN=vm1.example.test,O=EXAMPLE.TEST
expires: 2020-01-14 21:56:16 UTC
Request ID '20150114215808':
status: MONITORING
subject: CN=vm1.example.test,O=EXAMPLE.TEST
expires: 2020-01-14 21:56:16 UTC
Thu Dec 19 15:56:49 CST 2019
[root@vm1 ~]# grep "IPA CA certificate is about to expire, use ipa-cacert-manage to renew it" /var/log/messages
Dec 19 15:56:47 vm1 dogtag-ipa-ca-renew-agent-submit: IPA CA certificate is about to expire, use ipa-cacert-manage to renew it
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/RHSA-2015-0442.html
Description of problem: When IPA server's externally signed CA cert is about to expire, I'd expect to see a message in /var/log/messages. I walked the server's time slowly from 4 weeks out to the expiration time an never saw a message. All I saw was getcert change: [root@rhel7-9 log]# getcert list -i 20141216222410 Number of certificates and requests being tracked: 8. Request ID '20141216222410': status: MONITORING ca-error: Updated certificate not available stuck: no key pair storage: type=NSSDB,location='/etc/pki/pki-tomcat/alias',nickname='caSigningCert cert-pki-ca',token='NSS Certificate DB',pin='285787707402' certificate: type=NSSDB,location='/etc/pki/pki-tomcat/alias',nickname='caSigningCert cert-pki-ca',token='NSS Certificate DB' CA: dogtag-ipa-ca-renew-agent issuer: CN=Primary Fake CA,O=fakerealm1 subject: CN=Certificate Authority,O=EXAMPLE.COM expires: 2019-12-16 22:21:55 UTC key usage: digitalSignature,nonRepudiation,keyCertSign pre-save command: post-save command: track: yes auto-renew: yes Version-Release number of selected component (if applicable): ipa-server-4.1.0-13.el7.x86_64 How reproducible: always Steps to Reproduce: 1. Start IPA server install requiring externally signed CA: ipa-server-install --setup-dns --forwarder=192.168.122.1 -r EXAMPLE.TEST -a Secret123 -p Secret123 --external-ca -U 2. Setup Fake external CA for signing SERNUM=$RANDOM SERNUM=$(( SERNUM += 1 )) echo -e "y\n10\ny\n" | \ certutil -S -d . \ -n RootCA \ -s "CN=MyRootCA, O=fakerealm1" \ -x \ -t "CTu,CTu,CTu" \ -g 2048 \ -m $SERNUM\ -v 60 \ -z /etc/group \ -2 \ --keyUsage certSigning \ --nsCertType sslCA,smimeCA,objectSigningCA \ -f mypass1 3. Sign IPA CSR and export fake CA cert SERNUM=$(( SERNUM += 1 )) echo -e "y\n10\ny\n" | \ certutil -C -d . \ -c RootCA \ -m $SERNUM \ -v 60 \ -2 \ --keyUsage digitalSignature,nonRepudiation,certSigning \ --nsCertType sslCA,smimeCA,objectSigningCA \ -i /root/ipa.csr \ -o /root/ipa.crt \ -f mypass1 \ -a certutil -L -d . -n "RootCA" -a >> /root/ipacacert.asc 4. Finish IPA install cd /root ipa-server-install --setup-dns --forwarder=192.168.122.1 \ -r EXAMPLE.TEST -a Secret123 -p Secret123 \ --external-cert-file=/root/ipa.crt \ --external-cert-file=/root/ipacacert.asc -U 5. Walk time forward with date command while making sure certs expire date <soonest_expiration_minus_4_weeks> getcert list | egrep "status|expires|Request|subject|ca-error" 6. When you get within 4 weeks of CA expiring, check /var/log/messages for message grep "IPA CA certificate is about to expire, use ipa-cacert-manage to renew it" /var/log/messages Actual results: no warning seen in log Expected results: Should see: "IPA CA certificate is about to expire, use ipa-cacert-manage to renew it" Additional info: