Bug 1549187
Summary: | IdM servers:/usr/share/ipa/html/ca.crt does not include the complete chain | ||
---|---|---|---|
Product: | Red Hat Enterprise Linux 7 | Reporter: | Brian J. Atkisson <batkisso> |
Component: | ipa | Assignee: | IPA Maintainers <ipa-maint> |
Status: | CLOSED ERRATA | QA Contact: | ipa-qe <ipa-qe> |
Severity: | unspecified | Docs Contact: | |
Priority: | unspecified | ||
Version: | 7.4 | CC: | akarimi, cheimes, frenaud, myusuf, ndehadra, pasik, pvoborni, rcritten, rvdwees, tscherf |
Target Milestone: | rc | ||
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | ipa-4.6.4-1.el7 | Doc Type: | If docs needed, set a value |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2018-10-30 10:57:12 UTC | Type: | Bug |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Brian J. Atkisson
2018-02-26 16:06:11 UTC
The installation with external-ca only adds IPA CA in master:/usr/share/ipa/html/ca.crt. Note that if ipa-certupdate is run on the master, the whole chain will be written to this file. The other workaround is to copy master:/etc/ipa/ca.crt to client:/tmp/ca.crt and call ipa-client-install --ca-cert-file=/tmp/ca.crt (or copy directly to /etc/ipa/ca.crt and it will be reused). In renewal case, it is documented to run ipa-certupdate on all replicas. It is documented in renewal procedure: https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/7/html/linux_domain_identity_authentication_and_policy_guide/cert-renewal#manual-cert-renewal-ext Do I understand it correctly that the bug is that on install, usr/share/ipa/html/ca.crt is not updated with full chain? And it is still valid on RHEL 7.4 and further? And correct fix would be to update it automatically during master installation and all subsequent replica installations? In reply to comment #c3: yes, the issue happens on install with --external-ca and is present on RHEL 7.4: ipa-server.x86_64 4.5.0-22.el7_4 and RHEL 7.5: ipa-server.x86_64 4.5.4-10.el7 We should automatically update it during master installation. Upstream ticket: https://pagure.io/freeipa/issue/7526 Fixed upstream master: https://pagure.io/freeipa/c/af99032d901d55e56bccdc272cfbf3617de05b53 https://pagure.io/freeipa/c/1d70ce850e965a2d5475895aa88668756a6810b3 ipa-4-6: https://pagure.io/freeipa/c/06b55118988628fe939f3c7488822f40b81e1f8b https://pagure.io/freeipa/c/a9e9d5056713fef72425d155690af53efe2e7a7f version: ipa-server-4.6.4-6.el7.x86_64 Steps: Execute upstream test: IPATEST_YAML_CONFIG=/root/mh_cfg.yaml ipa-run-tests -v -r a --with-xunit test_integration/test_external_ca.py::TestExternalCA --logging-level=DEBUG console log: [..] [ipatests.pytest_plugins.integration.host.Host.client.cmd11] RUN ['rm', '-rvf', '/root/ipatests/file_backup', '/root/ipatests/file_remove'] [ipatests.pytest_plugins.integration.host.Host.client.cmd11] Exit code: 0 [ipatests.pytest_plugins.integration.host.Host.client.OpenSSHTransport] GET /root/ipatests/backup_hostname [ipatests.pytest_plugins.integration.host.Host.client.cmd12] RUN ['cat', '/root/ipatests/backup_hostname'] [ipatests.pytest_plugins.integration.host.Host.client.cmd12] cat: /root/ipatests/backup_hostname: No such file or directory [ipatests.pytest_plugins.integration.host.Host.client.cmd12] Exit code: 1 [ipatests.pytest_plugins.integration.host.Host.client.OpenSSHTransport] RUN ['kdestroy', '-A'] [ipatests.pytest_plugins.integration.host.Host.client.cmd13] RUN ['kdestroy', '-A'] [ipatests.pytest_plugins.integration.host.Host.client.cmd13] Exit code: 0 [ipatests.pytest_plugins.integration.host.Host.client.OpenSSHTransport] RUN ['rm', '-rvf', '/root/ipatests'] [ipatests.pytest_plugins.integration.host.Host.client.cmd14] RUN ['rm', '-rvf', '/root/ipatests'] [ipatests.pytest_plugins.integration.host.Host.client.cmd14] removed ‘/root/ipatests/env.sh’ [ipatests.pytest_plugins.integration.host.Host.client.cmd14] removed directory: ‘/root/ipatests’ [ipatests.pytest_plugins.integration.host.Host.client.cmd14] Exit code: 0 ---------------------------------------------------- generated xml file: /root/nosetests.xml ----------------------------------------------------- =========================================================== 2 passed in 629.47 seconds =========================================================== Full console logs are attached. Based on above observations, marking the bug as verified. 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://access.redhat.com/errata/RHBA-2018:3187 *** Bug 1626583 has been marked as a duplicate of this bug. *** |