Hide Forgot
Description of problem: When ipa-replica-installed is executed, part of the configuration is to setup PKINIT. In case an IPA CA exists in the topology and the installer has not been executed with --no-pkinit, an IPA CA signed certificate for the KDC is requested through certmonger. In case the CA is not reachable, certmonger creates a self-signed certificate for the KDC. The error message shown on the screen is confusing, because it says that PKINIT onfiguration failed in total: ERROR PKINIT certificate request failed: Certificate issuance failed (CA_UNREACHABLE) ERROR Failed to configure PKINIT Here we should better say that full PKINIT configuration failed but local PKINIT has been configured with a self-signed KDC certificate. Version-Release number of selected component (if applicable): ipa-server-4.5.0-21.el7_4.1.2.x86_64 How reproducible: Steps to Reproduce: 1. 2. 3. Actual results: Expected results: Additional info:
Hello, thought it will be very useful to have steps to reproduce here for a further process. Steps to reproduce: 1. Get machines for master and replica e.g. with Fedora 25 2. Add freeipa 4.5 copr: > # dnf copr enable @freeipa/freeipa-4.5 3. Update machines and install ipa-server: > # dnf update -y && dnf install ipa-server 4. Install master, e.g.: > master # ipa-server-install --setup-dns --auto-forwarders 5. Add a breakpoint to /usr/lib/python2.7/site-packages/ipaserver/install/krbinstance.py at line 492 right after method definition on replica machine: > 491: def issue_ipa_ca_signed_pkinit_certs(self): > 492: import pdb; pdb.set_trace() 6. Run replica installation: > replica # ipa-client-install > replica # ipa-replica-install 7. Wait until it will hit a breakpoint and then stop pki-tomcatd@pki-tomcat service on master > master # systemctl stop pki-tomcatd@pki-tomcat 8. Continue execution on replica. Actual results: > ipa : ERROR PKINIT certificate request failed: Certificate issuance failed (CA_UNREACHABLE) > ipa : ERROR Failed to configure PKINIT Expected results: > Here we should better say that full PKINIT configuration failed but local PKINIT has been configured with a self-signed KDC certificate.
Upstream ticket: https://pagure.io/freeipa/issue/7179
Fixed upstream ipa-4-5: https://pagure.io/freeipa/c/c79cdccfa2361f013fb51e8225b4630abab8b557 ipa-4-6: https://pagure.io/freeipa/c/f8e6c997b54564533250e536fbe250f460035235 master: https://pagure.io/freeipa/c/7a3da27816f62240cebbac72de5c98a96ace0794
verified using steps provided in comment#1 Version: ipa-server-4.5.4-4.el7.x86_64 Actual result: ..... ..... Done configuring certificate server (pki-tomcatd). Configuring Kerberos KDC (krb5kdc) [1/1]: installing X509 Certificate for PKINIT Full PKINIT configuration did not succeed The setup will only install bits essential to the server functionality You can enable PKINIT after the setup completed using 'ipa-pkinit-manage' Done configuring Kerberos KDC (krb5kdc). Applying LDAP updates Upgrading IPA:. Estimated time: 1 minute 30 seconds [1/9]: stopping directory server [2/9]: saving configuration .... ....
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:0918