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

feat: adds 3-level certificate chain generation script #165

Merged
merged 1 commit into from
Feb 12, 2025

Conversation

Akhilesh-max
Copy link
Contributor

Fixes -- #164

@Akhilesh-max
Copy link
Contributor Author

Akhilesh-max commented Feb 10, 2025

@yogeshbdeshpande @setrofim @thomas-fossati Please take a look when get a chance.
Thanks!

scripts/gen-certs.sh Outdated Show resolved Hide resolved
scripts/gen-certs.sh Outdated Show resolved Hide resolved
Makefile Outdated Show resolved Hide resolved
scripts/gen-certs.sh Show resolved Hide resolved
Copy link
Contributor

@thomas-fossati thomas-fossati left a comment

Choose a reason for hiding this comment

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

Good start! I have left a few comments inline.

Makefile Outdated Show resolved Hide resolved
scripts/gen-certs.sh Show resolved Hide resolved
scripts/gen-certs.sh Outdated Show resolved Hide resolved
scripts/gen-certs.sh Show resolved Hide resolved
scripts/gen-certs.sh Outdated Show resolved Hide resolved
@Akhilesh-max
Copy link
Contributor Author

@thomas-fossati @setrofim Addressed all the comments above. PTAL.
Thanks!

Akhilesh-max pushed a commit to Akhilesh-max/corim that referenced this pull request Feb 11, 2025
Signed-off-by: Akhilesh Kr. Yadav <akhileshkr.yadav@Akhileshs-MacBook-Air.local>
-C Do not clean up intermediate artifacts (e.g., CSRs).

Note: Regenerating the certificate chain is an exceptional action and should
only be done when necessary (e.g., when certificates expire).
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Copy link
Contributor

Choose a reason for hiding this comment

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

You should also update the help message in the Makefile. And maybe use "regenerate" rather than "generate" as the certs are already generated, so normally there would be no need to generate them again.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done.

Akhilesh-max pushed a commit to Akhilesh-max/corim that referenced this pull request Feb 11, 2025
Signed-off-by: Akhilesh Kr. Yadav <akhileshkr.yadav@Akhileshs-MacBook-Air.local>
Makefile Outdated
@@ -58,3 +63,4 @@ help:
@echo " * presubmit: check you are ready to push your local branch to remote"
@echo " * help: print this menu"
@echo " * licenses: check licenses of dependent packages"
@echo " * certs: generate the certificate chain"
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
@echo " * certs: generate the certificate chain"
@echo " * test-certs: generate the certificate chain"

Akhilesh-max pushed a commit to Akhilesh-max/corim that referenced this pull request Feb 11, 2025
Signed-off-by: Akhilesh Kr. Yadav <akhileshkr.yadav@Akhileshs-MacBook-Air.local>

Addressing comments on veraison#165

Signed-off-by: Akhilesh Kr. Yadav <akhileshkr.yadav@Akhileshs-MacBook-Air.local>

Addressing comments on veraison#165

Signed-off-by: Akhilesh Kr. Yadav <akhileshkr.yadav@Akhileshs-MacBook-Air.local>

Addressing comments on veraison#165

Signed-off-by: Akhilesh Kr. Yadav <akhileshkr.yadav@Akhileshs-MacBook-Air.local>
Copy link
Contributor

@thomas-fossati thomas-fossati left a comment

Choose a reason for hiding this comment

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

Thanks for addressing my comments.

🚢 it!

@Akhilesh-max
Copy link
Contributor Author

@setrofim PTAL. Thanks!

Makefile Outdated
@@ -58,3 +63,4 @@ help:
@echo " * presubmit: check you are ready to push your local branch to remote"
@echo " * help: print this menu"
@echo " * licenses: check licenses of dependent packages"
@echo " * test-certs: generate the certificate chain"
Copy link
Contributor

Choose a reason for hiding this comment

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

is the rendering on line 66 off, please check!

Also for re-generate, is it going to be the same command, then please clarify in the message

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done.

create
Create the root, intermediate, and end-entity certificates.

clean
Copy link
Contributor

Choose a reason for hiding this comment

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

It is not clear the scope of clean to me?

Is it all certs, then please specify clearly..

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It should have been clean_certs_artifacts. Updated accordingly.

Akhilesh-max pushed a commit to Akhilesh-max/corim that referenced this pull request Feb 12, 2025
Signed-off-by: Akhilesh Kr. Yadav <akhileshkr.yadav@Akhileshs-MacBook-Air.local>

Addressing comments on veraison#165

Signed-off-by: Akhilesh Kr. Yadav <akhileshkr.yadav@Akhileshs-MacBook-Air.local>

Addressing comments on veraison#165

Signed-off-by: Akhilesh Kr. Yadav <akhileshkr.yadav@Akhileshs-MacBook-Air.local>

Addressing comments on veraison#165

Signed-off-by: Akhilesh Kr. Yadav <akhileshkr.yadav@Akhileshs-MacBook-Air.local>

Addressing comments on veraison#165

Signed-off-by: Akhilesh Kr. Yadav <akhileshkr.yadav@Akhileshs-MacBook-Air.local>
Copy link
Contributor

@yogeshbdeshpande yogeshbdeshpande left a comment

Choose a reason for hiding this comment

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

Most of my comments have been seeking clarifications and minor .nits.

I will approve once you please clarify!

Signed-off-by: Akhilesh Kr. Yadav <akhileshkr.yadav@Akhileshs-MacBook-Air.local>

Addressing comments on veraison#165

Signed-off-by: Akhilesh Kr. Yadav <akhileshkr.yadav@Akhileshs-MacBook-Air.local>

Addressing comments on veraison#165

Signed-off-by: Akhilesh Kr. Yadav <akhileshkr.yadav@Akhileshs-MacBook-Air.local>

Addressing comments on veraison#165

Signed-off-by: Akhilesh Kr. Yadav <akhileshkr.yadav@Akhileshs-MacBook-Air.local>

Addressing comments on veraison#165

Signed-off-by: Akhilesh Kr. Yadav <akhileshkr.yadav@Akhileshs-MacBook-Air.local>

Addressing comments on veraison#165

Signed-off-by: Akhilesh Kr. Yadav <akhileshkr.yadav@Akhileshs-MacBook-Air.local>
@Akhilesh-max
Copy link
Contributor Author

@yogeshbdeshpande @setrofim Updated as per the reviews.

Copy link
Contributor

@yogeshbdeshpande yogeshbdeshpande 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 for the changes!

@setrofim setrofim merged commit f0fb974 into veraison:main Feb 12, 2025
5 checks passed
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