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: certificates are valid for 30 days and cli improvements #243

Merged
merged 1 commit into from
Oct 28, 2024

Conversation

AndersonQ
Copy link
Member

What does this PR do?

  • the generated certificates are valid for 30 days instead of 7
  • add -noip flag to allow generating certificates without ips
  • restore the -rsa flag
  • add -names flag to allow setting multiple dns names
  • add -client flag to generate a certificate without any SAN/DNS or IP

Why is it important?

useful for generating certificates for test

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

  • N/A

@AndersonQ AndersonQ requested a review from a team as a code owner October 24, 2024 15:04
@AndersonQ AndersonQ requested review from faec and VihasMakwana and removed request for a team October 24, 2024 15:04
@AndersonQ AndersonQ self-assigned this Oct 24, 2024
@AndersonQ AndersonQ requested a review from leehinman October 24, 2024 15:04
@AndersonQ AndersonQ added Team:Elastic-Agent-Data-Plane Label for the Agent Data Plane team enhancement New feature or request labels Oct 24, 2024
@pierrehilbert pierrehilbert requested review from mauri870 and removed request for faec and VihasMakwana October 24, 2024 15:31
 - the generated certificates are valid for 30 days instead of 7
 - add `-noip` flag to allow generating certificates without ips
 - restore the `-rsa` flag
 - add `-names` flag to allow setting multiple dns names
 - add `-client` flag to generate a certificate without any SAN/DNS or IP
@elasticmachine
Copy link
Collaborator

💚 Build Succeeded

History

cc @AndersonQ

@mauri870 mauri870 changed the title certutil: certificates are valid for 30 days and cli improvments certutil: certificates are valid for 30 days and cli improvements Oct 25, 2024
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. I noticed you're quite interested in the crypto/certs part of this repo. You might find the tool age to be a great source of inspiration.

@AndersonQ AndersonQ merged commit 26a9ae3 into elastic:main Oct 28, 2024
6 checks passed
@AndersonQ AndersonQ deleted the improve-certutil branch October 28, 2024 09:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request Team:Elastic-Agent-Data-Plane Label for the Agent Data Plane team
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants