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

Don't re-create existing CA certs #747

Merged
merged 2 commits into from
May 27, 2020

Conversation

zipkid
Copy link
Contributor

@zipkid zipkid commented May 27, 2020

When starting a new puppetserver as CA with existing CA files, the current code tries to perform 'puppetserver ca setup' because the puppetserver's cert does not exist yet.
However, that command fails because the CA cert files exist and can, correctly, not be overwritten.

This PR changes checking for the CA cert, instead of the server's own cert.

@zipkid zipkid force-pushed the fix/ca_reuse_existing branch from 605b24d to 1045bbd Compare May 27, 2020 07:05
@ekohl ekohl added the Bug label May 27, 2020
@ekohl ekohl merged commit 34d53f7 into theforeman:master May 27, 2020
@ekohl
Copy link
Member

ekohl commented May 27, 2020

Thanks! I've taken the liberty to squash and modify the commit message slightly.

@zipkid zipkid deleted the fix/ca_reuse_existing branch May 27, 2020 11:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants