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

(PUP-11856) State machine renews host cert #9075

Merged

Conversation

mhashizume
Copy link
Contributor

This commit adds a new NeedRenewedCert class and related logic to the state machine to handle automatic host/client certificate renewal.

@mhashizume mhashizume force-pushed the PUP-11856/main/state-machine-renew branch 2 times, most recently from de3d44e to 86b02e7 Compare June 27, 2023 00:02
@mhashizume mhashizume force-pushed the PUP-11856/main/state-machine-renew branch 3 times, most recently from 823cfbf to c317f95 Compare June 27, 2023 21:21
@mhashizume mhashizume marked this pull request as ready for review June 27, 2023 21:26
@mhashizume mhashizume requested a review from a team as a code owner June 27, 2023 21:26
@mhashizume mhashizume force-pushed the PUP-11856/main/state-machine-renew branch from c317f95 to 5396d4e Compare June 27, 2023 22:23
@mhashizume mhashizume force-pushed the PUP-11856/main/state-machine-renew branch from 5396d4e to 1a50213 Compare June 27, 2023 22:52
This commit adds a new NeedRenewedCert class and related logic to the
state machine to handle automatic host/client certificate renewal.
Previously, the build_cert method in Puppet::TestCa needed special logic
for the Eliptical Curve class: ruby/openssl#29

This issue was resolved in OpenSSL 2.0, which was released in 2016,
meaning that all versions of Ruby that Puppet supports includes
Ruby/OpenSSL >= 2.0.

This commit removes special logic for EC in Puppet::TestCa.
This commit does three things:

- Update the CA library to enable resuing an SSL private key when
  generating a certificate;
- Enable the certificate generating Rake task to generate a new
  "renewed" certificate to support testing automatic certificate
renewal;
- Regenerate all of the SSL test fixtures using that Rake task.
@mhashizume mhashizume force-pushed the PUP-11856/main/state-machine-renew branch from 1a50213 to c5370df Compare June 27, 2023 22:58
@mhashizume mhashizume merged commit 0b9e1ac into puppetlabs:main Jun 27, 2023
9 checks passed
@mhashizume mhashizume deleted the PUP-11856/main/state-machine-renew branch June 27, 2023 23:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants