New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Refactor installer code requesting certificates #219
Conversation
…enew-agent This commit makes sure that dogtag-ipa-ca-renew-agent CA helper can be used before Kerberos is configured.
- Temporary modify certmonger dogtag-ipa-ca-renew helper to request the IPA RA agent cert, using the temp cert created during pkispawn. The cert request is now processed through certmonger, and the helper arguments are restored once the agent cert is obtained. - Modify the installer code creating HTTP and LDAP certificates to use certmonger's IPA helper with temporary parameters (calling dogtag-submit instead of ipa-submit) - Clean-up for the integration tests: sometimes ipa renewal.lock is not released during ipa-server-uninstall. Make sure that the file is removed to allow future installations. https://fedorahosted.org/freeipa/ticket/6433
|
Although there are no conflicts with |
|
Hi Fraser, If it is showing instead that the lock is taken, then the install will fail on timeout. |
|
Can we fix this in a separate PR to unblock the merge of this one? |
|
@jcholast sure, especially if it is related to renewal locks or some other tangential matter. ( @flo-renaud I have not yet confirmed the cause; will get to it tomorrow ) |
|
Well I couldn't wait 'til tomorrow so I checked just then. I could not reproduce the issue :) |
|
Thanks Fraser! |
|
Turns out the request does not time out in certmonger, but the 60 seconds wait in |
|
I updated the patch for renewal lock with a new fix. The timeout needs to be increased, but the lock may also happen because the renewal scripts are run by certmonger during the cert request and should not (for instance for http cert the renewal script restarts httpd while the service is not completely configured). |
With this PR, the certificates requested during server installation are now consistently obtained through certmonger (applies to HTTP/LDAP and renew agent cert).
Part of the refactoring effort, certificates sub-effort.
Reviewed at https://github.com/dkupka/freeipa/pull/2
https://fedorahosted.org/freeipa/ticket/6433