Bug 1283882
| Summary: | IPA certificate auto renewal fail with "Invalid Credential" | ||
|---|---|---|---|
| Product: | Red Hat Enterprise Linux 7 | Reporter: | Jan Kurik <jkurik> |
| Component: | ipa | Assignee: | IPA Maintainers <ipa-maint> |
| Status: | CLOSED ERRATA | QA Contact: | Namita Soman <nsoman> |
| Severity: | urgent | Docs Contact: | |
| Priority: | urgent | ||
| Version: | 7.2 | CC: | akasurde, ekeck, ipa-maint, jcholast, jkurik, ksiddiqu, mkosek, mnavrati, nsoman, pvoborni, rcritten, spoore, xdong |
| Target Milestone: | rc | Keywords: | ZStream |
| Target Release: | --- | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | ipa-4.2.0-15.el7_2.1 | Doc Type: | Bug Fix |
| Doc Text: |
During the renewal of the IdM RA agent certificate, the renewed certificate was already available for use, but the related configuration was not updated yet. As a consequence, if the renewal of another certificate was triggered during the renewal of the IdM RA agent certificate, the renewal could fail with the "Invalid credential" error. Now, the IdM RA agent certificate is properly locked for the whole duration of the renewal.
|
Story Points: | --- |
| Clone Of: | 1277696 | Environment: | |
| Last Closed: | 2015-12-08 10:36:52 UTC | Type: | --- |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
| Bug Depends On: | 1277696 | ||
| Bug Blocks: | |||
|
Description
Jan Kurik
2015-11-20 07:37:30 UTC
I have tried 10 times, all Still see the below error every time: [root@72z ~]# rpm -q ipa-server ipa-server-4.2.0-15.el7_2.3.x86_64 . . . [root@72z ~]# date -s "718 days";sleep 240;getcert list | egrep "status|expires|Request|subject|ca-error" Thu Oct 31 12:28:54 EDT 2019 Request ID '20151125155206': status: MONITORING subject: CN=CA Audit,O=TESTRELM.TEST expires: 2021-10-20 16:31:02 UTC Request ID '20151125155208': status: MONITORING subject: CN=OCSP Subsystem,O=TESTRELM.TEST expires: 2021-10-20 16:30:12 UTC Request ID '20151125155209': status: MONITORING subject: CN=CA Subsystem,O=TESTRELM.TEST expires: 2021-10-20 16:30:22 UTC Request ID '20151125155211': status: MONITORING subject: CN=Certificate Authority,O=TESTRELM.TEST expires: 2035-11-25 15:50:59 UTC Request ID '20151125155212': status: MONITORING subject: CN=IPA RA,O=TESTRELM.TEST expires: 2021-10-20 16:31:21 UTC Request ID '20151125155213': status: MONITORING subject: CN=72z.testrelm.test,O=TESTRELM.TEST expires: 2021-10-20 16:29:18 UTC Request ID '20151125155341': status: MONITORING subject: CN=72z.testrelm.test,O=TESTRELM.TEST expires: 2021-10-31 16:30:32 UTC Request ID '20151125161205': status: MONITORING subject: CN=72z.testrelm.test,O=TESTRELM.TEST expires: 2021-10-31 16:29:03 UTC [root@72z ~]# date -s "719 days";sleep 240;getcert list | egrep "status|expires|Request|subject|ca-error" Tue Oct 19 12:42:29 EDT 2021 Request ID '20151125155206': status: MONITORING subject: CN=CA Audit,O=TESTRELM.TEST expires: 2023-10-09 16:44:45 UTC Request ID '20151125155208': status: MONITORING subject: CN=OCSP Subsystem,O=TESTRELM.TEST expires: 2023-10-09 16:45:05 UTC Request ID '20151125155209': status: POST_SAVED_CERT subject: CN=CA Subsystem,O=TESTRELM.TEST expires: 2023-10-09 16:45:56 UTC Request ID '20151125155211': status: MONITORING subject: CN=Certificate Authority,O=TESTRELM.TEST expires: 2035-11-25 15:50:59 UTC Request ID '20151125155212': status: MONITORING subject: CN=IPA RA,O=TESTRELM.TEST expires: 2023-10-09 16:43:56 UTC Request ID '20151125155213': status: MONITORING subject: CN=72z.testrelm.test,O=TESTRELM.TEST expires: 2023-10-09 16:43:01 UTC Request ID '20151125155341': status: MONITORING subject: CN=72z.testrelm.test,O=TESTRELM.TEST expires: 2023-10-20 16:42:37 UTC Request ID '20151125161205': status: CA_UNREACHABLE ca-error: Server at https://72z.testrelm.test/ipa/xml failed request, will retry: 907 (RPC failed at server. cannot connect to 'https://72z.testrelm.test:443/ca/eeca/ca/profileSubmitSSLClient': (SSL_ERROR_EXPIRED_CERT_ALERT) SSL peer rejected your certificate as expired.). subject: CN=72z.testrelm.test,O=TESTRELM.TEST expires: 2021-10-31 16:29:03 UTC Steps to Reproduce: 1.ipa server installed 2.Check certs' expirations 3.Change date to within 4 weeks of sonnest to expire date 4.Wait until certs get renewed 5.Repeat multiple times. You move system time forward by too much. The algorithm that works for me is: 1. find the soonest expiring certificate 2. move system time forward to 3 weeks before the certificate expires 3. repeat Let me know if that fixed it for you. 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-2015-2562.html |