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

certutil: restore previous GenerateChildCert signature #237

Merged
merged 2 commits into from
Oct 9, 2024

Conversation

AndersonQ
Copy link
Member

What does this PR do?

It restores the previous GenerateChildCert to undo a breaking change and creates GenerateGenericChildCert with the new signature

Why is it important?

The breaking change on GenerateChildCert is affecting several integration tests on elastic-agent

Checklist

  • My code follows the style guidelines of this project
  • I have commented my code, particularly in hard-to-understand areas
  • I have added tests that prove my fix is effective or that my feature works

Related issues

It restores the previous GenerateChildCert to undo a breaking change and creates GenerateGenericChildCert with the new signature
@AndersonQ AndersonQ self-assigned this Oct 9, 2024
@AndersonQ AndersonQ requested a review from a team as a code owner October 9, 2024 10:01
@AndersonQ AndersonQ requested review from belimawr, mauri870 and VihasMakwana and removed request for a team October 9, 2024 10:01
Copy link
Contributor

@VihasMakwana VihasMakwana left a comment

Choose a reason for hiding this comment

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

LGTM


// GenerateGenericChildCert generates a x509 Certificate using priv and pub
// as the certificate's private and public keys and as a child of caCert.
// Use this function if oyu need fine control over keys or ips and certificate name,
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
// Use this function if oyu need fine control over keys or ips and certificate name,
// Use this function if you need fine control over keys or ips and certificate name,

Copy link
Member

@mauri870 mauri870 left a comment

Choose a reason for hiding this comment

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

LGTM, thanks!

@elasticmachine
Copy link
Collaborator

💚 Build Succeeded

History

cc @AndersonQ

@AndersonQ AndersonQ merged commit 6904fdc into elastic:main Oct 9, 2024
6 checks passed
@AndersonQ AndersonQ deleted the certutil-fix-breaking-chagne branch October 9, 2024 10:31
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.

4 participants