-
Notifications
You must be signed in to change notification settings - Fork 17
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
Conversation
@yogeshbdeshpande @setrofim @thomas-fossati Please take a look when get a chance. |
There was a problem hiding this 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.
5be2f7a
to
2d5c5c3
Compare
@thomas-fossati @setrofim Addressed all the comments above. PTAL. |
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). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@thomas-fossati
wrt https://github.com/veraison/corim/pull/165/files#r1951084868
Is it the way we wanted it?
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done.
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" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@echo " * certs: generate the certificate chain" | |
@echo " * test-certs: generate the certificate chain" |
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>
d21af02
to
751e20d
Compare
There was a problem hiding this 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!
@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" |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done.
scripts/gen-certs.sh
Outdated
create | ||
Create the root, intermediate, and end-entity certificates. | ||
|
||
clean |
There was a problem hiding this comment.
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..
There was a problem hiding this comment.
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.
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>
751e20d
to
2a38dda
Compare
There was a problem hiding this 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>
2a38dda
to
c454eae
Compare
@yogeshbdeshpande @setrofim Updated as per the reviews. |
There was a problem hiding this 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!
Fixes -- #164