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

fix: generate new root ca when it expires #240

Closed
wants to merge 1 commit into from
Closed

Conversation

gruyaume
Copy link
Contributor

Description

Here we generate a new root CA when it expires and we don't revoke certificates created by old CA. In any case, this "revocation" didn't do much as we don't maintain a CRL.

Fixes #239

Checklist:

  • My code follows the style guidelines of this project
  • I have performed a self-review of my own code
  • I have made corresponding changes to the documentation
  • I have added tests that validate the behaviour of the software
  • I validated that new and existing unit tests pass locally with my changes
  • Any dependent changes have been merged and published in downstream modules
  • I have bumped the version of the library

@gruyaume gruyaume requested a review from a team as a code owner September 11, 2024 23:46
Comment on lines 189 to +194
if self._root_certificate_is_stored:
secret = self.model.get_secret(label=CA_CERTIFICATES_SECRET_LABEL)
secret.set_content(content=secret_content)
secret.set_info(
expire=timedelta(days=self._config_root_ca_certificate_validity),
)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It seems to me that this branch is currently impossible to reach.

Copy link
Contributor

@saltiyazan saltiyazan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Blocking this PR as it will be addressed in the context of TLSENG-343

@gruyaume
Copy link
Contributor Author

Blocking this PR as it will be addressed in the context of TLSENG-343

Sure, I'll close it then

@gruyaume gruyaume closed this Sep 12, 2024
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.

CA Certificate is not renewed after it expired
3 participants