Skip to content
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

[Backport][ipa-4-8] Do not renew externally-signed CA as self-signed #4170

Closed

Conversation

frasertweedale
Copy link
Contributor

This PR was opened automatically because PR #4148 was pushed to master and backport to ipa-4-8 is required.

Commit 49cf5ec fixed a bug that
prevented migration from externally-signed to self-signed IPA CA.
But it introduced a subtle new issue: certmonger-initiated renewal
renews an externally-signed IPA CA as a self-signed CA.

To resolve this issue, introduce the `--force-self-signed' flag for
the dogtag-ipa-ca-renew-agent script.  Add another certmonger CA
definition that calls this script with the `--force-self-signed'
flag.  Update dogtag-ipa-ca-renew-agent to only issue a self-signed
CA certificate if the existing certificate is self-signed or if
`--force-self-signed' was given.  Update `ipa-cacert-manage renew'
to supply `--force-self-signed' when appropriate.

As a result of these changes, certmonger-initiated renewal of an
externally-signed IPA CA certificate will not issue a self-signed
certificate.

Fixes: https://pagure.io/freeipa/issue/8176
@frasertweedale frasertweedale added the ack Pull Request approved, can be merged label Jan 29, 2020
@frasertweedale
Copy link
Contributor Author

PR was ACKed automatically because this is backport of PR #4148. Wait for CI to finish before pushing. In case of questions or problems contact @frasertweedale who is author of the original PR.

@frasertweedale frasertweedale added the re-run Trigger a new run of PR-CI label Jan 29, 2020
@freeipa-pr-ci freeipa-pr-ci removed the re-run Trigger a new run of PR-CI label Jan 29, 2020
@frasertweedale frasertweedale added the pushed Pull Request has already been pushed label Jan 30, 2020
@frasertweedale
Copy link
Contributor Author

ipa-4-8:

  • 4b55136 (HEAD) Do not renew externally-signed CA as self-signed

@frasertweedale frasertweedale deleted the backport_pr4148_ipa-4-8 branch January 30, 2020 09:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ack Pull Request approved, can be merged pushed Pull Request has already been pushed
Projects
None yet
2 participants